//===----------------------------------------------------------------------===//
//
// This source file is part of the Soto for AWS open source project
//
// Copyright (c) 2017-2024 the Soto project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Soto project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

// THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator.
// DO NOT EDIT.

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
@_spi(SotoInternal) import SotoCore

extension ElastiCache {
    // MARK: Enums

    public enum AZMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case crossAz = "cross-az"
        case singleAz = "single-az"
        public var description: String { return self.rawValue }
    }

    public enum AuthTokenUpdateStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case rotating = "ROTATING"
        case setting = "SETTING"
        public var description: String { return self.rawValue }
    }

    public enum AuthTokenUpdateStrategyType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case delete = "DELETE"
        case rotate = "ROTATE"
        case set = "SET"
        public var description: String { return self.rawValue }
    }

    public enum AuthenticationType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case iam = "iam"
        case noPassword = "no-password"
        case password = "password"
        public var description: String { return self.rawValue }
    }

    public enum AutomaticFailoverStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "disabled"
        case disabling = "disabling"
        case enabled = "enabled"
        case enabling = "enabling"
        public var description: String { return self.rawValue }
    }

    public enum ChangeType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case immediate = "immediate"
        case requiresReboot = "requires-reboot"
        public var description: String { return self.rawValue }
    }

    public enum ClusterMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case compatible = "compatible"
        case disabled = "disabled"
        case enabled = "enabled"
        public var description: String { return self.rawValue }
    }

    public enum DataStorageUnit: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case gb = "GB"
        public var description: String { return self.rawValue }
    }

    public enum DataTieringStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "disabled"
        case enabled = "enabled"
        public var description: String { return self.rawValue }
    }

    public enum DestinationType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case cloudWatchLogs = "cloudwatch-logs"
        case kinesisFirehose = "kinesis-firehose"
        public var description: String { return self.rawValue }
    }

    public enum InputAuthenticationType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case iam = "iam"
        case noPassword = "no-password-required"
        case password = "password"
        public var description: String { return self.rawValue }
    }

    public enum IpDiscovery: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case ipv4 = "ipv4"
        case ipv6 = "ipv6"
        public var description: String { return self.rawValue }
    }

    public enum LogDeliveryConfigurationStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case active = "active"
        case disabling = "disabling"
        case enabling = "enabling"
        case error = "error"
        case modifying = "modifying"
        public var description: String { return self.rawValue }
    }

    public enum LogFormat: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case json = "json"
        case text = "text"
        public var description: String { return self.rawValue }
    }

    public enum LogType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case engineLog = "engine-log"
        case slowLog = "slow-log"
        public var description: String { return self.rawValue }
    }

    public enum MultiAZStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "disabled"
        case enabled = "enabled"
        public var description: String { return self.rawValue }
    }

    public enum NetworkType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case dualStack = "dual_stack"
        case ipv4 = "ipv4"
        case ipv6 = "ipv6"
        public var description: String { return self.rawValue }
    }

    public enum NodeUpdateInitiatedBy: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case customer = "customer"
        case system = "system"
        public var description: String { return self.rawValue }
    }

    public enum NodeUpdateStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case complete = "complete"
        case inProgress = "in-progress"
        case notApplied = "not-applied"
        case stopped = "stopped"
        case stopping = "stopping"
        case waitingToStart = "waiting-to-start"
        public var description: String { return self.rawValue }
    }

    public enum OutpostMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case crossOutpost = "cross-outpost"
        case singleOutpost = "single-outpost"
        public var description: String { return self.rawValue }
    }

    public enum PendingAutomaticFailoverStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "disabled"
        case enabled = "enabled"
        public var description: String { return self.rawValue }
    }

    public enum ServiceUpdateSeverity: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case critical = "critical"
        case important = "important"
        case low = "low"
        case medium = "medium"
        public var description: String { return self.rawValue }
    }

    public enum ServiceUpdateStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case available = "available"
        case cancelled = "cancelled"
        case expired = "expired"
        public var description: String { return self.rawValue }
    }

    public enum ServiceUpdateType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case securityUpdate = "security-update"
        public var description: String { return self.rawValue }
    }

    public enum SlaMet: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case na = "n/a"
        case no = "no"
        case yes = "yes"
        public var description: String { return self.rawValue }
    }

    public enum SourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case cacheCluster = "cache-cluster"
        case cacheParameterGroup = "cache-parameter-group"
        case cacheSecurityGroup = "cache-security-group"
        case cacheSubnetGroup = "cache-subnet-group"
        case replicationGroup = "replication-group"
        case serverlessCache = "serverless-cache"
        case serverlessCacheSnapshot = "serverless-cache-snapshot"
        case user = "user"
        case userGroup = "user-group"
        public var description: String { return self.rawValue }
    }

    public enum TransitEncryptionMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case preferred = "preferred"
        case required = "required"
        public var description: String { return self.rawValue }
    }

    public enum UpdateActionStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case complete = "complete"
        case inProgress = "in-progress"
        case notApplicable = "not-applicable"
        case notApplied = "not-applied"
        case scheduled = "scheduled"
        case scheduling = "scheduling"
        case stopped = "stopped"
        case stopping = "stopping"
        case waitingToStart = "waiting-to-start"
        public var description: String { return self.rawValue }
    }

    // MARK: Shapes

    public struct AddTagsToResourceMessage: AWSEncodableShape {
        public struct _TagsEncoding: ArrayCoderProperties { public static let member = "Tag" }

        /// The Amazon Resource Name (ARN) of the resource to which the tags are to be added, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster or arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot. ElastiCache resources are cluster and snapshot. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Service Namespaces.
        public let resourceName: String?
        /// A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
        @OptionalCustomCoding<ArrayCoder<_TagsEncoding, Tag>>
        public var tags: [Tag]?

        @inlinable
        public init(resourceName: String? = nil, tags: [Tag]? = nil) {
            self.resourceName = resourceName
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case resourceName = "ResourceName"
            case tags = "Tags"
        }
    }

    public struct AllowedNodeTypeModificationsMessage: AWSDecodableShape {
        /// A string list, each element of which specifies a cache node type which you can use to scale your cluster or replication group. When scaling down a Valkey or Redis OSS cluster or replication group using ModifyCacheCluster or ModifyReplicationGroup, use a value from this list for the CacheNodeType parameter.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var scaleDownModifications: [String]?
        /// A string list, each element of which specifies a cache node type which you can use to scale your cluster or replication group. When scaling up a Valkey or Redis OSS cluster or replication group using ModifyCacheCluster or ModifyReplicationGroup, use a value from this list for the CacheNodeType parameter.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var scaleUpModifications: [String]?

        @inlinable
        public init(scaleDownModifications: [String]? = nil, scaleUpModifications: [String]? = nil) {
            self.scaleDownModifications = scaleDownModifications
            self.scaleUpModifications = scaleUpModifications
        }

        private enum CodingKeys: String, CodingKey {
            case scaleDownModifications = "ScaleDownModifications"
            case scaleUpModifications = "ScaleUpModifications"
        }
    }

    public struct Authentication: AWSDecodableShape {
        /// The number of passwords belonging to the user. The maximum is two.
        public let passwordCount: Int?
        /// Indicates whether the user requires a password to authenticate.
        public let type: AuthenticationType?

        @inlinable
        public init(passwordCount: Int? = nil, type: AuthenticationType? = nil) {
            self.passwordCount = passwordCount
            self.type = type
        }

        private enum CodingKeys: String, CodingKey {
            case passwordCount = "PasswordCount"
            case type = "Type"
        }
    }

    public struct AuthenticationMode: AWSEncodableShape {
        /// Specifies the passwords to use for authentication if Type is set to password.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var passwords: [String]?
        /// Specifies the authentication type. Possible options are IAM authentication, password and no password.
        public let type: InputAuthenticationType?

        @inlinable
        public init(passwords: [String]? = nil, type: InputAuthenticationType? = nil) {
            self.passwords = passwords
            self.type = type
        }

        public func validate(name: String) throws {
            try self.validate(self.passwords, name: "passwords", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case passwords = "Passwords"
            case type = "Type"
        }
    }

    public struct AuthorizeCacheSecurityGroupIngressMessage: AWSEncodableShape {
        /// The cache security group that allows network ingress.
        public let cacheSecurityGroupName: String?
        /// The Amazon EC2 security group to be authorized for ingress to the cache security group.
        public let ec2SecurityGroupName: String?
        /// The Amazon account number of the Amazon EC2 security group owner. Note that this is not the same thing as an Amazon access key ID - you must provide a valid Amazon account number for this parameter.
        public let ec2SecurityGroupOwnerId: String?

        @inlinable
        public init(cacheSecurityGroupName: String? = nil, ec2SecurityGroupName: String? = nil, ec2SecurityGroupOwnerId: String? = nil) {
            self.cacheSecurityGroupName = cacheSecurityGroupName
            self.ec2SecurityGroupName = ec2SecurityGroupName
            self.ec2SecurityGroupOwnerId = ec2SecurityGroupOwnerId
        }

        private enum CodingKeys: String, CodingKey {
            case cacheSecurityGroupName = "CacheSecurityGroupName"
            case ec2SecurityGroupName = "EC2SecurityGroupName"
            case ec2SecurityGroupOwnerId = "EC2SecurityGroupOwnerId"
        }
    }

    public struct AuthorizeCacheSecurityGroupIngressResult: AWSDecodableShape {
        public let cacheSecurityGroup: CacheSecurityGroup?

        @inlinable
        public init(cacheSecurityGroup: CacheSecurityGroup? = nil) {
            self.cacheSecurityGroup = cacheSecurityGroup
        }

        private enum CodingKeys: String, CodingKey {
            case cacheSecurityGroup = "CacheSecurityGroup"
        }
    }

    public struct AvailabilityZone: AWSDecodableShape {
        /// The name of the Availability Zone.
        public let name: String?

        @inlinable
        public init(name: String? = nil) {
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
        }
    }

    public struct BatchApplyUpdateActionMessage: AWSEncodableShape {
        /// The cache cluster IDs
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var cacheClusterIds: [String]?
        /// The replication group IDs
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var replicationGroupIds: [String]?
        /// The unique ID of the service update
        public let serviceUpdateName: String?

        @inlinable
        public init(cacheClusterIds: [String]? = nil, replicationGroupIds: [String]? = nil, serviceUpdateName: String? = nil) {
            self.cacheClusterIds = cacheClusterIds
            self.replicationGroupIds = replicationGroupIds
            self.serviceUpdateName = serviceUpdateName
        }

        public func validate(name: String) throws {
            try self.validate(self.cacheClusterIds, name: "cacheClusterIds", parent: name, max: 20)
            try self.validate(self.replicationGroupIds, name: "replicationGroupIds", parent: name, max: 20)
        }

        private enum CodingKeys: String, CodingKey {
            case cacheClusterIds = "CacheClusterIds"
            case replicationGroupIds = "ReplicationGroupIds"
            case serviceUpdateName = "ServiceUpdateName"
        }
    }

    public struct BatchStopUpdateActionMessage: AWSEncodableShape {
        /// The cache cluster IDs
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var cacheClusterIds: [String]?
        /// The replication group IDs
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var replicationGroupIds: [String]?
        /// The unique ID of the service update
        public let serviceUpdateName: String?

        @inlinable
        public init(cacheClusterIds: [String]? = nil, replicationGroupIds: [String]? = nil, serviceUpdateName: String? = nil) {
            self.cacheClusterIds = cacheClusterIds
            self.replicationGroupIds = replicationGroupIds
            self.serviceUpdateName = serviceUpdateName
        }

        public func validate(name: String) throws {
            try self.validate(self.cacheClusterIds, name: "cacheClusterIds", parent: name, max: 20)
            try self.validate(self.replicationGroupIds, name: "replicationGroupIds", parent: name, max: 20)
        }

        private enum CodingKeys: String, CodingKey {
            case cacheClusterIds = "CacheClusterIds"
            case replicationGroupIds = "ReplicationGroupIds"
            case serviceUpdateName = "ServiceUpdateName"
        }
    }

    public struct CacheCluster: AWSDecodableShape {
        public struct _CacheNodesEncoding: ArrayCoderProperties { public static let member = "CacheNode" }
        public struct _CacheSecurityGroupsEncoding: ArrayCoderProperties { public static let member = "CacheSecurityGroup" }
        public struct _LogDeliveryConfigurationsEncoding: ArrayCoderProperties { public static let member = "LogDeliveryConfiguration" }

        /// The ARN (Amazon Resource Name) of the cache cluster.
        public let arn: String?
        /// A flag that enables encryption at-rest when set to true. You cannot modify the value of AtRestEncryptionEnabled after the cluster is created. To enable at-rest encryption on a cluster you must set AtRestEncryptionEnabled to true when you create a cluster.  Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version 3.2.6, 4.x or later. Default: false
        public let atRestEncryptionEnabled: Bool?
        /// A flag that enables using an AuthToken (password) when issuing Valkey or Redis OSS  commands. Default: false
        public let authTokenEnabled: Bool?
        /// The date the auth token was last modified
        public let authTokenLastModifiedDate: Date?
        ///  If you are running Valkey or Redis OSS engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
        public let autoMinorVersionUpgrade: Bool?
        /// The date and time when the cluster was created.
        public let cacheClusterCreateTime: Date?
        /// The user-supplied identifier of the cluster. This identifier is a unique key that identifies a cluster.
        public let cacheClusterId: String?
        /// The current state of this cluster, one of the following values: available, creating, deleted, deleting, incompatible-network, modifying, rebooting cluster nodes, restore-failed, or snapshotting.
        public let cacheClusterStatus: String?
        /// A list of cache nodes that are members of the cluster.
        @OptionalCustomCoding<ArrayCoder<_CacheNodesEncoding, CacheNode>>
        public var cacheNodes: [CacheNode]?
        /// The name of the compute and memory capacity node type for the cluster. The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.   General purpose:   Current generation:   M7g node types: 					cache.m7g.large, 					cache.m7g.xlarge, 					cache.m7g.2xlarge, 					cache.m7g.4xlarge, 					cache.m7g.8xlarge, 					cache.m7g.12xlarge, 					cache.m7g.16xlarge   For region availability, see Supported Node Types    M6g node types (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
        ///
        /// 					 	cache.m6g.large,
        /// 							cache.m6g.xlarge,
        /// 							cache.m6g.2xlarge,
        /// 							cache.m6g.4xlarge,
        /// 							cache.m6g.8xlarge,
        /// 							cache.m6g.12xlarge,
        /// 							cache.m6g.16xlarge   M5 node types: cache.m5.large, 						cache.m5.xlarge, 						cache.m5.2xlarge, 						cache.m5.4xlarge, 						cache.m5.12xlarge, 						cache.m5.24xlarge   M4 node types: cache.m4.large, 						cache.m4.xlarge, 						cache.m4.2xlarge, 						cache.m4.4xlarge, 						cache.m4.10xlarge   T4g node types (available only for Redis OSS engine version 5.0.6 onward and Memcached engine version 1.5.16 onward):
        /// 					        cache.t4g.micro,
        /// 					        cache.t4g.small,
        /// 					        cache.t4g.medium   T3 node types: cache.t3.micro,  						cache.t3.small, 						cache.t3.medium   T2 node types: cache.t2.micro,  						cache.t2.small, 						cache.t2.medium    Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  T1 node types: cache.t1.micro   M1 node types: cache.m1.small,
        /// 						   cache.m1.medium,
        /// 						   cache.m1.large,
        /// 						   cache.m1.xlarge   M3 node types: cache.m3.medium, 						cache.m3.large,  						cache.m3.xlarge, 						cache.m3.2xlarge      Compute optimized:   Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  C1 node types: cache.c1.xlarge      Memory optimized:   Current generation:   R7g node types:
        /// 							cache.r7g.large,
        /// 							cache.r7g.xlarge,
        /// 							cache.r7g.2xlarge,
        /// 							cache.r7g.4xlarge,
        /// 							cache.r7g.8xlarge,
        /// 							cache.r7g.12xlarge,
        /// 							cache.r7g.16xlarge   For region availability, see Supported Node Types    R6g node types (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
        /// 							cache.r6g.large,
        /// 							cache.r6g.xlarge,
        /// 							cache.r6g.2xlarge,
        /// 							cache.r6g.4xlarge,
        /// 							cache.r6g.8xlarge,
        /// 							cache.r6g.12xlarge,
        /// 							cache.r6g.16xlarge   R5 node types: cache.r5.large, 					   cache.r5.xlarge, 					   cache.r5.2xlarge, 					   cache.r5.4xlarge, 					   cache.r5.12xlarge, 					   cache.r5.24xlarge   R4 node types: cache.r4.large, 					   cache.r4.xlarge, 					   cache.r4.2xlarge, 					   cache.r4.4xlarge, 					   cache.r4.8xlarge, 					   cache.r4.16xlarge    Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  M2 node types: cache.m2.xlarge,  						cache.m2.2xlarge, 						cache.m2.4xlarge   R3 node types: cache.r3.large,  						cache.r3.xlarge, 						cache.r3.2xlarge,   						cache.r3.4xlarge, 						cache.r3.8xlarge       Additional node type info    All current generation instance types are created in Amazon VPC by default.   Valkey or Redis OSS append-only files (AOF) are not supported for T1 or T2 instances.   Valkey or Redis OSS Multi-AZ with automatic failover is not supported on T1 instances.   The configuration variables appendonly and appendfsync are not supported on Valkey, or on Redis OSS version 2.8.22 and later.
        public let cacheNodeType: String?
        /// Status of the cache parameter group.
        public let cacheParameterGroup: CacheParameterGroupStatus?
        /// A list of cache security group elements, composed of name and status sub-elements.
        @OptionalCustomCoding<ArrayCoder<_CacheSecurityGroupsEncoding, CacheSecurityGroupMembership>>
        public var cacheSecurityGroups: [CacheSecurityGroupMembership]?
        /// The name of the cache subnet group associated with the cluster.
        public let cacheSubnetGroupName: String?
        /// The URL of the web page where you can download the latest ElastiCache client library.
        public let clientDownloadLandingPage: String?
        /// Represents a Memcached cluster endpoint which can be used by an application to connect to any node in the cluster. The configuration endpoint will always have .cfg in it. Example: mem-3.9dvc4r.cfg.usw2.cache.amazonaws.com:11211
        public let configurationEndpoint: Endpoint?
        /// The name of the cache engine (memcached or redis) to be used for this cluster.
        public let engine: String?
        /// The version of the cache engine that is used in this cluster.
        public let engineVersion: String?
        /// The network type associated with the cluster, either ipv4 | ipv6. IPv6 is supported for workloads using Valkey 7.2 and above, Redis OSS engine version 6.2 to 7.1 or Memcached engine version 1.6.6 and above on all instances built on the Nitro system.
        public let ipDiscovery: IpDiscovery?
        /// Returns the destination, format and type of the logs.
        @OptionalCustomCoding<ArrayCoder<_LogDeliveryConfigurationsEncoding, LogDeliveryConfiguration>>
        public var logDeliveryConfigurations: [LogDeliveryConfiguration]?
        /// Must be either ipv4 | ipv6 | dual_stack. IPv6 is supported for workloads using Valkey 7.2 and above, Redis OSS engine version 6.2 7.1 or Memcached engine version 1.6.6 and above on all instances built on the Nitro system.
        public let networkType: NetworkType?
        /// Describes a notification topic and its status. Notification topics are used for publishing ElastiCache events to subscribers using Amazon Simple Notification Service (SNS).
        public let notificationConfiguration: NotificationConfiguration?
        /// The number of cache nodes in the cluster. For clusters running Valkey or Redis OSS, this value must be 1. For clusters running Memcached, this value must be between 1 and 40.
        public let numCacheNodes: Int?
        public let pendingModifiedValues: PendingModifiedValues?
        /// The name of the Availability Zone in which the cluster is located or "Multiple" if the cache nodes are located in different Availability Zones.
        public let preferredAvailabilityZone: String?
        /// Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:    sun     mon     tue     wed     thu     fri     sat    Example: sun:23:00-mon:01:30
        public let preferredMaintenanceWindow: String?
        /// The outpost ARN in which the cache cluster is created.
        public let preferredOutpostArn: String?
        /// The replication group to which this cluster belongs. If this field is empty, the cluster is not associated with any replication group.
        public let replicationGroupId: String?
        /// A boolean value indicating whether log delivery is enabled for the replication group.
        public let replicationGroupLogDeliveryEnabled: Bool?
        /// A list of VPC Security Groups associated with the cluster.
        @OptionalCustomCoding<StandardArrayCoder<SecurityGroupMembership>>
        public var securityGroups: [SecurityGroupMembership]?
        /// The number of days for which ElastiCache retains automatic cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.  If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.
        public let snapshotRetentionLimit: Int?
        /// The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your cluster. Example: 05:00-09:00
        public let snapshotWindow: String?
        /// A flag that enables in-transit encryption when set to true.  Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version 3.2.6, 4.x or later. Default: false
        public let transitEncryptionEnabled: Bool?
        /// A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.
        public let transitEncryptionMode: TransitEncryptionMode?

        @inlinable
        public init(arn: String? = nil, atRestEncryptionEnabled: Bool? = nil, authTokenEnabled: Bool? = nil, authTokenLastModifiedDate: Date? = nil, autoMinorVersionUpgrade: Bool? = nil, cacheClusterCreateTime: Date? = nil, cacheClusterId: String? = nil, cacheClusterStatus: String? = nil, cacheNodes: [CacheNode]? = nil, cacheNodeType: String? = nil, cacheParameterGroup: CacheParameterGroupStatus? = nil, cacheSecurityGroups: [CacheSecurityGroupMembership]? = nil, cacheSubnetGroupName: String? = nil, clientDownloadLandingPage: String? = nil, configurationEndpoint: Endpoint? = nil, engine: String? = nil, engineVersion: String? = nil, ipDiscovery: IpDiscovery? = nil, logDeliveryConfigurations: [LogDeliveryConfiguration]? = nil, networkType: NetworkType? = nil, notificationConfiguration: NotificationConfiguration? = nil, numCacheNodes: Int? = nil, pendingModifiedValues: PendingModifiedValues? = nil, preferredAvailabilityZone: String? = nil, preferredMaintenanceWindow: String? = nil, preferredOutpostArn: String? = nil, replicationGroupId: String? = nil, replicationGroupLogDeliveryEnabled: Bool? = nil, securityGroups: [SecurityGroupMembership]? = nil, snapshotRetentionLimit: Int? = nil, snapshotWindow: String? = nil, transitEncryptionEnabled: Bool? = nil, transitEncryptionMode: TransitEncryptionMode? = nil) {
            self.arn = arn
            self.atRestEncryptionEnabled = atRestEncryptionEnabled
            self.authTokenEnabled = authTokenEnabled
            self.authTokenLastModifiedDate = authTokenLastModifiedDate
            self.autoMinorVersionUpgrade = autoMinorVersionUpgrade
            self.cacheClusterCreateTime = cacheClusterCreateTime
            self.cacheClusterId = cacheClusterId
            self.cacheClusterStatus = cacheClusterStatus
            self.cacheNodes = cacheNodes
            self.cacheNodeType = cacheNodeType
            self.cacheParameterGroup = cacheParameterGroup
            self.cacheSecurityGroups = cacheSecurityGroups
            self.cacheSubnetGroupName = cacheSubnetGroupName
            self.clientDownloadLandingPage = clientDownloadLandingPage
            self.configurationEndpoint = configurationEndpoint
            self.engine = engine
            self.engineVersion = engineVersion
            self.ipDiscovery = ipDiscovery
            self.logDeliveryConfigurations = logDeliveryConfigurations
            self.networkType = networkType
            self.notificationConfiguration = notificationConfiguration
            self.numCacheNodes = numCacheNodes
            self.pendingModifiedValues = pendingModifiedValues
            self.preferredAvailabilityZone = preferredAvailabilityZone
            self.preferredMaintenanceWindow = preferredMaintenanceWindow
            self.preferredOutpostArn = preferredOutpostArn
            self.replicationGroupId = replicationGroupId
            self.replicationGroupLogDeliveryEnabled = replicationGroupLogDeliveryEnabled
            self.securityGroups = securityGroups
            self.snapshotRetentionLimit = snapshotRetentionLimit
            self.snapshotWindow = snapshotWindow
            self.transitEncryptionEnabled = transitEncryptionEnabled
            self.transitEncryptionMode = transitEncryptionMode
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case atRestEncryptionEnabled = "AtRestEncryptionEnabled"
            case authTokenEnabled = "AuthTokenEnabled"
            case authTokenLastModifiedDate = "AuthTokenLastModifiedDate"
            case autoMinorVersionUpgrade = "AutoMinorVersionUpgrade"
            case cacheClusterCreateTime = "CacheClusterCreateTime"
            case cacheClusterId = "CacheClusterId"
            case cacheClusterStatus = "CacheClusterStatus"
            case cacheNodes = "CacheNodes"
            case cacheNodeType = "CacheNodeType"
            case cacheParameterGroup = "CacheParameterGroup"
            case cacheSecurityGroups = "CacheSecurityGroups"
            case cacheSubnetGroupName = "CacheSubnetGroupName"
            case clientDownloadLandingPage = "ClientDownloadLandingPage"
            case configurationEndpoint = "ConfigurationEndpoint"
            case engine = "Engine"
            case engineVersion = "EngineVersion"
            case ipDiscovery = "IpDiscovery"
            case logDeliveryConfigurations = "LogDeliveryConfigurations"
            case networkType = "NetworkType"
            case notificationConfiguration = "NotificationConfiguration"
            case numCacheNodes = "NumCacheNodes"
            case pendingModifiedValues = "PendingModifiedValues"
            case preferredAvailabilityZone = "PreferredAvailabilityZone"
            case preferredMaintenanceWindow = "PreferredMaintenanceWindow"
            case preferredOutpostArn = "PreferredOutpostArn"
            case replicationGroupId = "ReplicationGroupId"
            case replicationGroupLogDeliveryEnabled = "ReplicationGroupLogDeliveryEnabled"
            case securityGroups = "SecurityGroups"
            case snapshotRetentionLimit = "SnapshotRetentionLimit"
            case snapshotWindow = "SnapshotWindow"
            case transitEncryptionEnabled = "TransitEncryptionEnabled"
            case transitEncryptionMode = "TransitEncryptionMode"
        }
    }

    public struct CacheClusterMessage: AWSDecodableShape {
        public struct _CacheClustersEncoding: ArrayCoderProperties { public static let member = "CacheCluster" }

        /// A list of clusters. Each item in the list contains detailed information about one cluster.
        @OptionalCustomCoding<ArrayCoder<_CacheClustersEncoding, CacheCluster>>
        public var cacheClusters: [CacheCluster]?
        /// Provides an identifier to allow retrieval of paginated results.
        public let marker: String?

        @inlinable
        public init(cacheClusters: [CacheCluster]? = nil, marker: String? = nil) {
            self.cacheClusters = cacheClusters
            self.marker = marker
        }

        private enum CodingKeys: String, CodingKey {
            case cacheClusters = "CacheClusters"
            case marker = "Marker"
        }
    }

    public struct CacheEngineVersion: AWSDecodableShape {
        /// The description of the cache engine.
        public let cacheEngineDescription: String?
        /// The description of the cache engine version.
        public let cacheEngineVersionDescription: String?
        /// The name of the cache parameter group family associated with this cache engine. Valid values are: memcached1.4 | memcached1.5 | memcached1.6 | redis2.6 | redis2.8 | redis3.2 | redis4.0 | redis5.0 | redis6.x | redis7
        public let cacheParameterGroupFamily: String?
        /// The name of the cache engine.
        public let engine: String?
        /// The version number of the cache engine.
        public let engineVersion: String?

        @inlinable
        public init(cacheEngineDescription: String? = nil, cacheEngineVersionDescription: String? = nil, cacheParameterGroupFamily: String? = nil, engine: String? = nil, engineVersion: String? = nil) {
            self.cacheEngineDescription = cacheEngineDescription
            self.cacheEngineVersionDescription = cacheEngineVersionDescription
            self.cacheParameterGroupFamily = cacheParameterGroupFamily
            self.engine = engine
            self.engineVersion = engineVersion
        }

        private enum CodingKeys: String, CodingKey {
            case cacheEngineDescription = "CacheEngineDescription"
            case cacheEngineVersionDescription = "CacheEngineVersionDescription"
            case cacheParameterGroupFamily = "CacheParameterGroupFamily"
            case engine = "Engine"
            case engineVersion = "EngineVersion"
        }
    }

    public struct CacheEngineVersionMessage: AWSDecodableShape {
        public struct _CacheEngineVersionsEncoding: ArrayCoderProperties { public static let member = "CacheEngineVersion" }

        /// A list of cache engine version details. Each element in the list contains detailed information about one cache engine version.
        @OptionalCustomCoding<ArrayCoder<_CacheEngineVersionsEncoding, CacheEngineVersion>>
        public var cacheEngineVersions: [CacheEngineVersion]?
        /// Provides an identifier to allow retrieval of paginated results.
        public let marker: String?

        @inlinable
        public init(cacheEngineVersions: [CacheEngineVersion]? = nil, marker: String? = nil) {
            self.cacheEngineVersions = cacheEngineVersions
            self.marker = marker
        }

        private enum CodingKeys: String, CodingKey {
            case cacheEngineVersions = "CacheEngineVersions"
            case marker = "Marker"
        }
    }

    public struct CacheNode: AWSDecodableShape {
        /// The date and time when the cache node was created.
        public let cacheNodeCreateTime: Date?
        /// The cache node identifier. A node ID is a numeric identifier (0001, 0002, etc.). The combination of cluster ID and node ID uniquely identifies every cache node used in a customer's Amazon account.
        public let cacheNodeId: String?
        /// The current state of this cache node, one of the following values: available, creating, rebooting, or deleting.
        public let cacheNodeStatus: String?
        /// The Availability Zone where this node was created and now resides.
        public let customerAvailabilityZone: String?
        /// The customer outpost ARN of the cache node.
        public let customerOutpostArn: String?
        /// The hostname for connecting to this cache node.
        public let endpoint: Endpoint?
        /// The status of the parameter group applied to this cache node.
        public let parameterGroupStatus: String?
        /// The ID of the primary node to which this read replica node is synchronized. If this field is empty, this node is not associated with a primary cluster.
        public let sourceCacheNodeId: String?

        @inlinable
        public init(cacheNodeCreateTime: Date? = nil, cacheNodeId: String? = nil, cacheNodeStatus: String? = nil, customerAvailabilityZone: String? = nil, customerOutpostArn: String? = nil, endpoint: Endpoint? = nil, parameterGroupStatus: String? = nil, sourceCacheNodeId: String? = nil) {
            self.cacheNodeCreateTime = cacheNodeCreateTime
            self.cacheNodeId = cacheNodeId
            self.cacheNodeStatus = cacheNodeStatus
            self.customerAvailabilityZone = customerAvailabilityZone
            self.customerOutpostArn = customerOutpostArn
            self.endpoint = endpoint
            self.parameterGroupStatus = parameterGroupStatus
            self.sourceCacheNodeId = sourceCacheNodeId
        }

        private enum CodingKeys: String, CodingKey {
            case cacheNodeCreateTime = "CacheNodeCreateTime"
            case cacheNodeId = "CacheNodeId"
            case cacheNodeStatus = "CacheNodeStatus"
            case customerAvailabilityZone = "CustomerAvailabilityZone"
            case customerOutpostArn = "CustomerOutpostArn"
            case endpoint = "Endpoint"
            case parameterGroupStatus = "ParameterGroupStatus"
            case sourceCacheNodeId = "SourceCacheNodeId"
        }
    }

    public struct CacheNodeTypeSpecificParameter: AWSDecodableShape {
        public struct _CacheNodeTypeSpecificValuesEncoding: ArrayCoderProperties { public static let member = "CacheNodeTypeSpecificValue" }

        /// The valid range of values for the parameter.
        public let allowedValues: String?
        /// A list of cache node types and their corresponding values for this parameter.
        @OptionalCustomCoding<ArrayCoder<_CacheNodeTypeSpecificValuesEncoding, CacheNodeTypeSpecificValue>>
        public var cacheNodeTypeSpecificValues: [CacheNodeTypeSpecificValue]?
        /// Indicates whether a change to the parameter is applied immediately or requires a reboot for the change to be applied. You can force a reboot or wait until the next maintenance window's reboot. For more information, see Rebooting a Cluster.
        public let changeType: ChangeType?
        /// The valid data type for the parameter.
        public let dataType: String?
        /// A description of the parameter.
        public let description: String?
        /// Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
        public let isModifiable: Bool?
        /// The earliest cache engine version to which the parameter can apply.
        public let minimumEngineVersion: String?
        /// The name of the parameter.
        public let parameterName: String?
        /// The source of the parameter value.
        public let source: String?

        @inlinable
        public init(allowedValues: String? = nil, cacheNodeTypeSpecificValues: [CacheNodeTypeSpecificValue]? = nil, changeType: ChangeType? = nil, dataType: String? = nil, description: String? = nil, isModifiable: Bool? = nil, minimumEngineVersion: String? = nil, parameterName: String? = nil, source: String? = nil) {
            self.allowedValues = allowedValues
            self.cacheNodeTypeSpecificValues = cacheNodeTypeSpecificValues
            self.changeType = changeType
            self.dataType = dataType
            self.description = description
            self.isModifiable = isModifiable
            self.minimumEngineVersion = minimumEngineVersion
            self.parameterName = parameterName
            self.source = source
        }

        private enum CodingKeys: String, CodingKey {
            case allowedValues = "AllowedValues"
            case cacheNodeTypeSpecificValues = "CacheNodeTypeSpecificValues"
            case changeType = "ChangeType"
            case dataType = "DataType"
            case description = "Description"
            case isModifiable = "IsModifiable"
            case minimumEngineVersion = "MinimumEngineVersion"
            case parameterName = "ParameterName"
            case source = "Source"
        }
    }

    public struct CacheNodeTypeSpecificValue: AWSDecodableShape {
        /// The cache node type for which this value applies.
        public let cacheNodeType: String?
        /// The value for the cache node type.
        public let value: String?

        @inlinable
        public init(cacheNodeType: String? = nil, value: String? = nil) {
            self.cacheNodeType = cacheNodeType
            self.value = value
        }

        private enum CodingKeys: String, CodingKey {
            case cacheNodeType = "CacheNodeType"
            case value = "Value"
        }
    }

    public struct CacheNodeUpdateStatus: AWSDecodableShape {
        /// The node ID of the cache cluster
        public let cacheNodeId: String?
        /// The deletion date of the node
        public let nodeDeletionDate: Date?
        /// The end date of the update for a node
        public let nodeUpdateEndDate: Date?
        /// Reflects whether the update was initiated by the customer or automatically applied
        public let nodeUpdateInitiatedBy: NodeUpdateInitiatedBy?
        /// The date when the update is triggered
        public let nodeUpdateInitiatedDate: Date?
        /// The start date of the update for a node
        public let nodeUpdateStartDate: Date?
        /// The update status of the node
        public let nodeUpdateStatus: NodeUpdateStatus?
        /// The date when the NodeUpdateStatus was last modified>
        public let nodeUpdateStatusModifiedDate: Date?

        @inlinable
        public init(cacheNodeId: String? = nil, nodeDeletionDate: Date? = nil, nodeUpdateEndDate: Date? = nil, nodeUpdateInitiatedBy: NodeUpdateInitiatedBy? = nil, nodeUpdateInitiatedDate: Date? = nil, nodeUpdateStartDate: Date? = nil, nodeUpdateStatus: NodeUpdateStatus? = nil, nodeUpdateStatusModifiedDate: Date? = nil) {
            self.cacheNodeId = cacheNodeId
            self.nodeDeletionDate = nodeDeletionDate
            self.nodeUpdateEndDate = nodeUpdateEndDate
            self.nodeUpdateInitiatedBy = nodeUpdateInitiatedBy
            self.nodeUpdateInitiatedDate = nodeUpdateInitiatedDate
            self.nodeUpdateStartDate = nodeUpdateStartDate
            self.nodeUpdateStatus = nodeUpdateStatus
            self.nodeUpdateStatusModifiedDate = nodeUpdateStatusModifiedDate
        }

        private enum CodingKeys: String, CodingKey {
            case cacheNodeId = "CacheNodeId"
            case nodeDeletionDate = "NodeDeletionDate"
            case nodeUpdateEndDate = "NodeUpdateEndDate"
            case nodeUpdateInitiatedBy = "NodeUpdateInitiatedBy"
            case nodeUpdateInitiatedDate = "NodeUpdateInitiatedDate"
            case nodeUpdateStartDate = "NodeUpdateStartDate"
            case nodeUpdateStatus = "NodeUpdateStatus"
            case nodeUpdateStatusModifiedDate = "NodeUpdateStatusModifiedDate"
        }
    }

    public struct CacheParameterGroup: AWSDecodableShape {
        /// The ARN (Amazon Resource Name) of the cache parameter group.
        public let arn: String?
        /// The name of the cache parameter group family that this cache parameter group is compatible with. Valid values are: memcached1.4 | memcached1.5 | memcached1.6 | redis2.6 | redis2.8 | redis3.2 | redis4.0 | redis5.0 | redis6.x | redis7
        public let cacheParameterGroupFamily: String?
        /// The name of the cache parameter group.
        public let cacheParameterGroupName: String?
        /// The description for this cache parameter group.
        public let description: String?
        /// Indicates whether the parameter group is associated with a Global datastore
        public let isGlobal: Bool?

        @inlinable
        public init(arn: String? = nil, cacheParameterGroupFamily: String? = nil, cacheParameterGroupName: String? = nil, description: String? = nil, isGlobal: Bool? = nil) {
            self.arn = arn
            self.cacheParameterGroupFamily = cacheParameterGroupFamily
            self.cacheParameterGroupName = cacheParameterGroupName
            self.description = description
            self.isGlobal = isGlobal
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case cacheParameterGroupFamily = "CacheParameterGroupFamily"
            case cacheParameterGroupName = "CacheParameterGroupName"
            case description = "Description"
            case isGlobal = "IsGlobal"
        }
    }

    public struct CacheParameterGroupDetails: AWSDecodableShape {
        public struct _CacheNodeTypeSpecificParametersEncoding: ArrayCoderProperties { public static let member = "CacheNodeTypeSpecificParameter" }
        public struct _ParametersEncoding: ArrayCoderProperties { public static let member = "Parameter" }

        /// A list of parameters specific to a particular cache node type. Each element in the list contains detailed information about one parameter.
        @OptionalCustomCoding<ArrayCoder<_CacheNodeTypeSpecificParametersEncoding, CacheNodeTypeSpecificParameter>>
        public var cacheNodeTypeSpecificParameters: [CacheNodeTypeSpecificParameter]?
        /// Provides an identifier to allow retrieval of paginated results.
        public let marker: String?
        /// A list of Parameter instances.
        @OptionalCustomCoding<ArrayCoder<_ParametersEncoding, Parameter>>
        public var parameters: [Parameter]?

        @inlinable
        public init(cacheNodeTypeSpecificParameters: [CacheNodeTypeSpecificParameter]? = nil, marker: String? = nil, parameters: [Parameter]? = nil) {
            self.cacheNodeTypeSpecificParameters = cacheNodeTypeSpecificParameters
            self.marker = marker
            self.parameters = parameters
        }

        private enum CodingKeys: String, CodingKey {
            case cacheNodeTypeSpecificParameters = "CacheNodeTypeSpecificParameters"
            case marker = "Marker"
            case parameters = "Parameters"
        }
    }

    public struct CacheParameterGroupNameMessage: AWSDecodableShape {
        /// The name of the cache parameter group.
        public let cacheParameterGroupName: String?

        @inlinable
        public init(cacheParameterGroupName: String? = nil) {
            self.cacheParameterGroupName = cacheParameterGroupName
        }

        private enum CodingKeys: String, CodingKey {
            case cacheParameterGroupName = "CacheParameterGroupName"
        }
    }

    public struct CacheParameterGroupStatus: AWSDecodableShape {
        public struct _CacheNodeIdsToRebootEncoding: ArrayCoderProperties { public static let member = "CacheNodeId" }

        /// A list of the cache node IDs which need to be rebooted for parameter changes to be applied. A node ID is a numeric identifier (0001, 0002, etc.).
        @OptionalCustomCoding<ArrayCoder<_CacheNodeIdsToRebootEncoding, String>>
        public var cacheNodeIdsToReboot: [String]?
        /// The name of the cache parameter group.
        public let cacheParameterGroupName: String?
        /// The status of parameter updates.
        public let parameterApplyStatus: String?

        @inlinable
        public init(cacheNodeIdsToReboot: [String]? = nil, cacheParameterGroupName: String? = nil, parameterApplyStatus: String? = nil) {
            self.cacheNodeIdsToReboot = cacheNodeIdsToReboot
            self.cacheParameterGroupName = cacheParameterGroupName
            self.parameterApplyStatus = parameterApplyStatus
        }

        private enum CodingKeys: String, CodingKey {
            case cacheNodeIdsToReboot = "CacheNodeIdsToReboot"
            case cacheParameterGroupName = "CacheParameterGroupName"
            case parameterApplyStatus = "ParameterApplyStatus"
        }
    }

    public struct CacheParameterGroupsMessage: AWSDecodableShape {
        public struct _CacheParameterGroupsEncoding: ArrayCoderProperties { public static let member = "CacheParameterGroup" }

        /// A list of cache parameter groups. Each element in the list contains detailed information about one cache parameter group.
        @OptionalCustomCoding<ArrayCoder<_CacheParameterGroupsEncoding, CacheParameterGroup>>
        public var cacheParameterGroups: [CacheParameterGroup]?
        /// Provides an identifier to allow retrieval of paginated results.
        public let marker: String?

        @inlinable
        public init(cacheParameterGroups: [CacheParameterGroup]? = nil, marker: String? = nil) {
            self.cacheParameterGroups = cacheParameterGroups
            self.marker = marker
        }

        private enum CodingKeys: String, CodingKey {
            case cacheParameterGroups = "CacheParameterGroups"
            case marker = "Marker"
        }
    }

    public struct CacheSecurityGroup: AWSDecodableShape {
        public struct _EC2SecurityGroupsEncoding: ArrayCoderProperties { public static let member = "EC2SecurityGroup" }

        /// The ARN of the cache security group,
        public let arn: String?
        /// The name of the cache security group.
        public let cacheSecurityGroupName: String?
        /// The description of the cache security group.
        public let description: String?
        /// A list of Amazon EC2 security groups that are associated with this cache security group.
        @OptionalCustomCoding<ArrayCoder<_EC2SecurityGroupsEncoding, EC2SecurityGroup>>
        public var ec2SecurityGroups: [EC2SecurityGroup]?
        /// The Amazon account ID of the cache security group owner.
        public let ownerId: String?

        @inlinable
        public init(arn: String? = nil, cacheSecurityGroupName: String? = nil, description: String? = nil, ec2SecurityGroups: [EC2SecurityGroup]? = nil, ownerId: String? = nil) {
            self.arn = arn
            self.cacheSecurityGroupName = cacheSecurityGroupName
            self.description = description
            self.ec2SecurityGroups = ec2SecurityGroups
            self.ownerId = ownerId
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case cacheSecurityGroupName = "CacheSecurityGroupName"
            case description = "Description"
            case ec2SecurityGroups = "EC2SecurityGroups"
            case ownerId = "OwnerId"
        }
    }

    public struct CacheSecurityGroupMembership: AWSDecodableShape {
        /// The name of the cache security group.
        public let cacheSecurityGroupName: String?
        /// The membership status in the cache security group. The status changes when a cache security group is modified, or when the cache security groups assigned to a cluster are modified.
        public let status: String?

        @inlinable
        public init(cacheSecurityGroupName: String? = nil, status: String? = nil) {
            self.cacheSecurityGroupName = cacheSecurityGroupName
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case cacheSecurityGroupName = "CacheSecurityGroupName"
            case status = "Status"
        }
    }

    public struct CacheSecurityGroupMessage: AWSDecodableShape {
        public struct _CacheSecurityGroupsEncoding: ArrayCoderProperties { public static let member = "CacheSecurityGroup" }

        /// A list of cache security groups. Each element in the list contains detailed information about one group.
        @OptionalCustomCoding<ArrayCoder<_CacheSecurityGroupsEncoding, CacheSecurityGroup>>
        public var cacheSecurityGroups: [CacheSecurityGroup]?
        /// Provides an identifier to allow retrieval of paginated results.
        public let marker: String?

        @inlinable
        public init(cacheSecurityGroups: [CacheSecurityGroup]? = nil, marker: String? = nil) {
            self.cacheSecurityGroups = cacheSecurityGroups
            self.marker = marker
        }

        private enum CodingKeys: String, CodingKey {
            case cacheSecurityGroups = "CacheSecurityGroups"
            case marker = "Marker"
        }
    }

    public struct CacheSubnetGroup: AWSDecodableShape {
        public struct _SubnetsEncoding: ArrayCoderProperties { public static let member = "Subnet" }

        /// The ARN (Amazon Resource Name) of the cache subnet group.
        public let arn: String?
        /// The description of the cache subnet group.
        public let cacheSubnetGroupDescription: String?
        /// The name of the cache subnet group.
        public let cacheSubnetGroupName: String?
        /// A list of subnets associated with the cache subnet group.
        @OptionalCustomCoding<ArrayCoder<_SubnetsEncoding, Subnet>>
        public var subnets: [Subnet]?
        /// Either ipv4 | ipv6 | dual_stack. IPv6 is supported for workloads using Valkey 7.2 and above, Redis OSS engine version 6.2 to 7.1 or Memcached engine version 1.6.6 and above on all instances built on the Nitro system.
        @OptionalCustomCoding<StandardArrayCoder<NetworkType>>
        public var supportedNetworkTypes: [NetworkType]?
        /// The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.
        public let vpcId: String?

        @inlinable
        public init(arn: String? = nil, cacheSubnetGroupDescription: String? = nil, cacheSubnetGroupName: String? = nil, subnets: [Subnet]? = nil, supportedNetworkTypes: [NetworkType]? = nil, vpcId: String? = nil) {
            self.arn = arn
            self.cacheSubnetGroupDescription = cacheSubnetGroupDescription
            self.cacheSubnetGroupName = cacheSubnetGroupName
            self.subnets = subnets
            self.supportedNetworkTypes = supportedNetworkTypes
            self.vpcId = vpcId
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case cacheSubnetGroupDescription = "CacheSubnetGroupDescription"
            case cacheSubnetGroupName = "CacheSubnetGroupName"
            case subnets = "Subnets"
            case supportedNetworkTypes = "SupportedNetworkTypes"
            case vpcId = "VpcId"
        }
    }

    public struct CacheSubnetGroupMessage: AWSDecodableShape {
        public struct _CacheSubnetGroupsEncoding: ArrayCoderProperties { public static let member = "CacheSubnetGroup" }

        /// A list of cache subnet groups. Each element in the list contains detailed information about one group.
        @OptionalCustomCoding<ArrayCoder<_CacheSubnetGroupsEncoding, CacheSubnetGroup>>
        public var cacheSubnetGroups: [CacheSubnetGroup]?
        /// Provides an identifier to allow retrieval of paginated results.
        public let marker: String?

        @inlinable
        public init(cacheSubnetGroups: [CacheSubnetGroup]? = nil, marker: String? = nil) {
            self.cacheSubnetGroups = cacheSubnetGroups
            self.marker = marker
        }

        private enum CodingKeys: String, CodingKey {
            case cacheSubnetGroups = "CacheSubnetGroups"
            case marker = "Marker"
        }
    }

    public struct CacheUsageLimits: AWSEncodableShape & AWSDecodableShape {
        ///   The maximum data storage limit in the cache, expressed in Gigabytes.
        public let dataStorage: DataStorage?
        public let ecpuPerSecond: ECPUPerSecond?

        @inlinable
        public init(dataStorage: DataStorage? = nil, ecpuPerSecond: ECPUPerSecond? = nil) {
            self.dataStorage = dataStorage
            self.ecpuPerSecond = ecpuPerSecond
        }

        private enum CodingKeys: String, CodingKey {
            case dataStorage = "DataStorage"
            case ecpuPerSecond = "ECPUPerSecond"
        }
    }

    public struct CloudWatchLogsDestinationDetails: AWSEncodableShape & AWSDecodableShape {
        /// The name of the CloudWatch Logs log group.
        public let logGroup: String?

        @inlinable
        public init(logGroup: String? = nil) {
            self.logGroup = logGroup
        }

        private enum CodingKeys: String, CodingKey {
            case logGroup = "LogGroup"
        }
    }

    public struct CompleteMigrationMessage: AWSEncodableShape {
        /// Forces the migration to stop without ensuring that data is in sync. It is recommended to use this option only to abort the migration and not recommended when application wants to continue migration to ElastiCache.
        public let force: Bool?
        /// The ID of the replication group to which data is being migrated.
        public let replicationGroupId: String?

        @inlinable
        public init(force: Bool? = nil, replicationGroupId: String? = nil) {
            self.force = force
            self.replicationGroupId = replicationGroupId
        }

        private enum CodingKeys: String, CodingKey {
            case force = "Force"
            case replicationGroupId = "ReplicationGroupId"
        }
    }

    public struct CompleteMigrationResponse: AWSDecodableShape {
        public let replicationGroup: ReplicationGroup?

        @inlinable
        public init(replicationGroup: ReplicationGroup? = nil) {
            self.replicationGroup = replicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case replicationGroup = "ReplicationGroup"
        }
    }

    public struct ConfigureShard: AWSEncodableShape {
        public struct _PreferredAvailabilityZonesEncoding: ArrayCoderProperties { public static let member = "PreferredAvailabilityZone" }
        public struct _PreferredOutpostArnsEncoding: ArrayCoderProperties { public static let member = "PreferredOutpostArn" }

        /// The number of replicas you want in this node group at the end of this operation. The maximum value for NewReplicaCount is 5. The minimum value depends upon the type of Valkey or Redis OSS replication group you are working with. The minimum number of replicas in a shard or replication group is:   Valkey or Redis OSS (cluster mode disabled)   If Multi-AZ: 1   If Multi-AZ: 0     Valkey or Redis OSS (cluster mode enabled): 0 (though you will not be able to failover to a replica if your primary node fails)
        public let newReplicaCount: Int?
        /// The 4-digit id for the node group you are configuring. For Valkey or Redis OSS (cluster mode disabled) replication groups, the node group id is always 0001. To find a Valkey or Redis OSS (cluster mode enabled)'s node group's (shard's) id, see Finding a Shard's Id.
        public let nodeGroupId: String?
        /// A list of PreferredAvailabilityZone strings that specify which availability zones the replication group's nodes are to be in. The nummber of PreferredAvailabilityZone values must equal the value of NewReplicaCount plus 1 to account for the primary node. If this member of ReplicaConfiguration is omitted, ElastiCache selects the availability zone for each of the replicas.
        @OptionalCustomCoding<ArrayCoder<_PreferredAvailabilityZonesEncoding, String>>
        public var preferredAvailabilityZones: [String]?
        /// The outpost ARNs in which the cache cluster is created.
        @OptionalCustomCoding<ArrayCoder<_PreferredOutpostArnsEncoding, String>>
        public var preferredOutpostArns: [String]?

        @inlinable
        public init(newReplicaCount: Int? = nil, nodeGroupId: String? = nil, preferredAvailabilityZones: [String]? = nil, preferredOutpostArns: [String]? = nil) {
            self.newReplicaCount = newReplicaCount
            self.nodeGroupId = nodeGroupId
            self.preferredAvailabilityZones = preferredAvailabilityZones
            self.preferredOutpostArns = preferredOutpostArns
        }

        public func validate(name: String) throws {
            try self.validate(self.nodeGroupId, name: "nodeGroupId", parent: name, max: 4)
            try self.validate(self.nodeGroupId, name: "nodeGroupId", parent: name, min: 1)
            try self.validate(self.nodeGroupId, name: "nodeGroupId", parent: name, pattern: "^\\d+$")
        }

        private enum CodingKeys: String, CodingKey {
            case newReplicaCount = "NewReplicaCount"
            case nodeGroupId = "NodeGroupId"
            case preferredAvailabilityZones = "PreferredAvailabilityZones"
            case preferredOutpostArns = "PreferredOutpostArns"
        }
    }

    public struct CopyServerlessCacheSnapshotRequest: AWSEncodableShape {
        public struct _TagsEncoding: ArrayCoderProperties { public static let member = "Tag" }

        /// The identifier of the KMS key used to encrypt the target snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let kmsKeyId: String?
        /// The identifier of the existing serverless cache’s snapshot to be copied. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let sourceServerlessCacheSnapshotName: String?
        /// A list of tags to be added to the target snapshot resource. A tag is a key-value pair. Available for Valkey, Redis OSS and Serverless Memcached only. Default: NULL
        @OptionalCustomCoding<ArrayCoder<_TagsEncoding, Tag>>
        public var tags: [Tag]?
        /// The identifier for the snapshot to be created. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let targetServerlessCacheSnapshotName: String?

        @inlinable
        public init(kmsKeyId: String? = nil, sourceServerlessCacheSnapshotName: String? = nil, tags: [Tag]? = nil, targetServerlessCacheSnapshotName: String? = nil) {
            self.kmsKeyId = kmsKeyId
            self.sourceServerlessCacheSnapshotName = sourceServerlessCacheSnapshotName
            self.tags = tags
            self.targetServerlessCacheSnapshotName = targetServerlessCacheSnapshotName
        }

        private enum CodingKeys: String, CodingKey {
            case kmsKeyId = "KmsKeyId"
            case sourceServerlessCacheSnapshotName = "SourceServerlessCacheSnapshotName"
            case tags = "Tags"
            case targetServerlessCacheSnapshotName = "TargetServerlessCacheSnapshotName"
        }
    }

    public struct CopyServerlessCacheSnapshotResponse: AWSDecodableShape {
        /// The response for the attempt to copy the serverless cache snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let serverlessCacheSnapshot: ServerlessCacheSnapshot?

        @inlinable
        public init(serverlessCacheSnapshot: ServerlessCacheSnapshot? = nil) {
            self.serverlessCacheSnapshot = serverlessCacheSnapshot
        }

        private enum CodingKeys: String, CodingKey {
            case serverlessCacheSnapshot = "ServerlessCacheSnapshot"
        }
    }

    public struct CopySnapshotMessage: AWSEncodableShape {
        public struct _TagsEncoding: ArrayCoderProperties { public static let member = "Tag" }

        /// The ID of the KMS key used to encrypt the target snapshot.
        public let kmsKeyId: String?
        /// The name of an existing snapshot from which to make a copy.
        public let sourceSnapshotName: String?
        /// A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
        @OptionalCustomCoding<ArrayCoder<_TagsEncoding, Tag>>
        public var tags: [Tag]?
        /// The Amazon S3 bucket to which the snapshot is exported. This parameter is used only when exporting a snapshot for external access. When using this parameter to export a snapshot, be sure Amazon ElastiCache has the needed permissions to this S3 bucket. For more information, see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket in the Amazon ElastiCache User Guide. For more information, see Exporting a Snapshot in the Amazon ElastiCache User Guide.
        public let targetBucket: String?
        /// A name for the snapshot copy. ElastiCache does not permit overwriting a snapshot, therefore this name must be unique within its context - ElastiCache or an Amazon S3 bucket if exporting.
        public let targetSnapshotName: String?

        @inlinable
        public init(kmsKeyId: String? = nil, sourceSnapshotName: String? = nil, tags: [Tag]? = nil, targetBucket: String? = nil, targetSnapshotName: String? = nil) {
            self.kmsKeyId = kmsKeyId
            self.sourceSnapshotName = sourceSnapshotName
            self.tags = tags
            self.targetBucket = targetBucket
            self.targetSnapshotName = targetSnapshotName
        }

        private enum CodingKeys: String, CodingKey {
            case kmsKeyId = "KmsKeyId"
            case sourceSnapshotName = "SourceSnapshotName"
            case tags = "Tags"
            case targetBucket = "TargetBucket"
            case targetSnapshotName = "TargetSnapshotName"
        }
    }

    public struct CopySnapshotResult: AWSDecodableShape {
        public let snapshot: Snapshot?

        @inlinable
        public init(snapshot: Snapshot? = nil) {
            self.snapshot = snapshot
        }

        private enum CodingKeys: String, CodingKey {
            case snapshot = "Snapshot"
        }
    }

    public struct CreateCacheClusterMessage: AWSEncodableShape {
        public struct _CacheSecurityGroupNamesEncoding: ArrayCoderProperties { public static let member = "CacheSecurityGroupName" }
        public struct _LogDeliveryConfigurationsEncoding: ArrayCoderProperties { public static let member = "LogDeliveryConfigurationRequest" }
        public struct _PreferredAvailabilityZonesEncoding: ArrayCoderProperties { public static let member = "PreferredAvailabilityZone" }
        public struct _PreferredOutpostArnsEncoding: ArrayCoderProperties { public static let member = "PreferredOutpostArn" }
        public struct _SecurityGroupIdsEncoding: ArrayCoderProperties { public static let member = "SecurityGroupId" }
        public struct _SnapshotArnsEncoding: ArrayCoderProperties { public static let member = "SnapshotArn" }
        public struct _TagsEncoding: ArrayCoderProperties { public static let member = "Tag" }

        ///  Reserved parameter. The password used to access a password protected server. Password constraints:   Must be only printable ASCII characters.   Must be at least 16 characters and no more than 128 characters in length.   The only permitted printable special characters are !, &, #, $, ^, , and -. Other printable special characters cannot be used in the AUTH token.   For more information, see AUTH password at http://redis.io/commands/AUTH.
        public let authToken: String?
        ///  If you are running Valkey 7.2 and above or Redis OSS engine version 6.0 and above, set this parameter to yes  to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
        public let autoMinorVersionUpgrade: Bool?
        /// Specifies whether the nodes in this Memcached cluster are created in a single Availability Zone or created across multiple Availability Zones in the cluster's region. This parameter is only supported for Memcached clusters. If the AZMode and PreferredAvailabilityZones are not specified, ElastiCache assumes single-az mode.
        public let azMode: AZMode?
        /// The node group (shard) identifier. This parameter is stored as a lowercase string.  Constraints:    A name must contain from 1 to 50 alphanumeric characters or hyphens.   The first character must be a letter.   A name cannot end with a hyphen or contain two consecutive hyphens.
        public let cacheClusterId: String?
        /// The compute and memory capacity of the nodes in the node group (shard). The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.   General purpose:   Current generation:   M7g node types: 					cache.m7g.large, 					cache.m7g.xlarge, 					cache.m7g.2xlarge, 					cache.m7g.4xlarge, 					cache.m7g.8xlarge, 					cache.m7g.12xlarge, 					cache.m7g.16xlarge   For region availability, see Supported Node Types    M6g node types (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
        ///
        /// 					 	cache.m6g.large,
        /// 							cache.m6g.xlarge,
        /// 							cache.m6g.2xlarge,
        /// 							cache.m6g.4xlarge,
        /// 							cache.m6g.8xlarge,
        /// 							cache.m6g.12xlarge,
        /// 							cache.m6g.16xlarge   M5 node types: cache.m5.large, 						cache.m5.xlarge, 						cache.m5.2xlarge, 						cache.m5.4xlarge, 						cache.m5.12xlarge, 						cache.m5.24xlarge   M4 node types: cache.m4.large, 						cache.m4.xlarge, 						cache.m4.2xlarge, 						cache.m4.4xlarge, 						cache.m4.10xlarge   T4g node types (available only for Redis OSS engine version 5.0.6 onward and Memcached engine version 1.5.16 onward):
        /// 					        cache.t4g.micro,
        /// 					        cache.t4g.small,
        /// 					        cache.t4g.medium   T3 node types: cache.t3.micro,  						cache.t3.small, 						cache.t3.medium   T2 node types: cache.t2.micro,  						cache.t2.small, 						cache.t2.medium    Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  T1 node types: cache.t1.micro   M1 node types: cache.m1.small,
        /// 						   cache.m1.medium,
        /// 						   cache.m1.large,
        /// 						   cache.m1.xlarge   M3 node types: cache.m3.medium, 						cache.m3.large,  						cache.m3.xlarge, 						cache.m3.2xlarge      Compute optimized:   Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  C1 node types: cache.c1.xlarge      Memory optimized:   Current generation:   R7g node types:
        /// 							cache.r7g.large,
        /// 							cache.r7g.xlarge,
        /// 							cache.r7g.2xlarge,
        /// 							cache.r7g.4xlarge,
        /// 							cache.r7g.8xlarge,
        /// 							cache.r7g.12xlarge,
        /// 							cache.r7g.16xlarge   For region availability, see Supported Node Types    R6g node types (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
        /// 							cache.r6g.large,
        /// 							cache.r6g.xlarge,
        /// 							cache.r6g.2xlarge,
        /// 							cache.r6g.4xlarge,
        /// 							cache.r6g.8xlarge,
        /// 							cache.r6g.12xlarge,
        /// 							cache.r6g.16xlarge   R5 node types: cache.r5.large, 					   cache.r5.xlarge, 					   cache.r5.2xlarge, 					   cache.r5.4xlarge, 					   cache.r5.12xlarge, 					   cache.r5.24xlarge   R4 node types: cache.r4.large, 					   cache.r4.xlarge, 					   cache.r4.2xlarge, 					   cache.r4.4xlarge, 					   cache.r4.8xlarge, 					   cache.r4.16xlarge    Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  M2 node types: cache.m2.xlarge,  						cache.m2.2xlarge, 						cache.m2.4xlarge   R3 node types: cache.r3.large,  						cache.r3.xlarge, 						cache.r3.2xlarge,   						cache.r3.4xlarge, 						cache.r3.8xlarge       Additional node type info    All current generation instance types are created in Amazon VPC by default.   Valkey or Redis OSS append-only files (AOF) are not supported for T1 or T2 instances.   Valkey or Redis OSS Multi-AZ with automatic failover is not supported on T1 instances.   The configuration variables appendonly and appendfsync are not supported on Valkey, or on Redis OSS version 2.8.22 and later.
        public let cacheNodeType: String?
        /// The name of the parameter group to associate with this cluster. If this argument is omitted, the default parameter group for the specified engine is used. You cannot use any parameter group which has cluster-enabled='yes' when creating a cluster.
        public let cacheParameterGroupName: String?
        /// A list of security group names to associate with this cluster. Use this parameter only when you are creating a cluster outside of an Amazon Virtual Private Cloud (Amazon VPC).
        @OptionalCustomCoding<ArrayCoder<_CacheSecurityGroupNamesEncoding, String>>
        public var cacheSecurityGroupNames: [String]?
        /// The name of the subnet group to be used for the cluster. Use this parameter only when you are creating a cluster in an Amazon Virtual Private Cloud (Amazon VPC).  If you're going to launch your cluster in an Amazon VPC, you need to create a subnet group before you start creating a cluster. For more information, see Subnets and Subnet Groups.
        public let cacheSubnetGroupName: String?
        /// The name of the cache engine to be used for this cluster. Valid values for this parameter are: memcached | redis
        public let engine: String?
        /// The version number of the cache engine to be used for this cluster. To view the supported cache engine versions, use the DescribeCacheEngineVersions operation.  Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster or replication group and create it anew with the earlier engine version.
        public let engineVersion: String?
        /// The network type you choose when modifying a cluster, either ipv4 | ipv6. IPv6 is supported for workloads using Valkey 7.2 and above, Redis OSS engine version 6.2 to 7.1 and Memcached engine version 1.6.6 and above on all instances built on the Nitro system.
        public let ipDiscovery: IpDiscovery?
        /// Specifies the destination, format and type of the logs.
        @OptionalCustomCoding<ArrayCoder<_LogDeliveryConfigurationsEncoding, LogDeliveryConfigurationRequest>>
        public var logDeliveryConfigurations: [LogDeliveryConfigurationRequest]?
        /// Must be either ipv4 | ipv6 | dual_stack. IPv6 is supported for workloads using Valkey 7.2 and above, Redis OSS engine version 6.2 to 7.1 and Memcached engine version 1.6.6 and above on all instances built on the Nitro system.
        public let networkType: NetworkType?
        /// The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent.  The Amazon SNS topic owner must be the same as the cluster owner.
        public let notificationTopicArn: String?
        /// The initial number of cache nodes that the cluster has. For clusters running Valkey or Redis OSS, this value must be 1. For clusters running Memcached, this value must be between 1 and 40. If you need more than 40 nodes for your Memcached cluster, please fill out the ElastiCache Limit Increase Request form at http://aws.amazon.com/contact-us/elasticache-node-limit-request/.
        public let numCacheNodes: Int?
        /// Specifies whether the nodes in the cluster are created in a single outpost or across multiple outposts.
        public let outpostMode: OutpostMode?
        /// The port number on which each of the cache nodes accepts connections.
        public let port: Int?
        /// The EC2 Availability Zone in which the cluster is created. All nodes belonging to this cluster are placed in the preferred Availability Zone. If you want to create your nodes across multiple Availability Zones, use PreferredAvailabilityZones. Default: System chosen Availability Zone.
        public let preferredAvailabilityZone: String?
        /// A list of the Availability Zones in which cache nodes are created. The order of the zones in the list is not important. This option is only supported on Memcached.  If you are creating your cluster in an Amazon VPC (recommended) you can only locate nodes in Availability Zones that are associated with the subnets in the selected subnet group. The number of Availability Zones listed must equal the value of NumCacheNodes.  If you want all the nodes in the same Availability Zone, use PreferredAvailabilityZone instead, or repeat the Availability Zone multiple times in the list. Default: System chosen Availability Zones.
        @OptionalCustomCoding<ArrayCoder<_PreferredAvailabilityZonesEncoding, String>>
        public var preferredAvailabilityZones: [String]?
        /// Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period.
        public let preferredMaintenanceWindow: String?
        /// The outpost ARN in which the cache cluster is created.
        public let preferredOutpostArn: String?
        /// The outpost ARNs in which the cache cluster is created.
        @OptionalCustomCoding<ArrayCoder<_PreferredOutpostArnsEncoding, String>>
        public var preferredOutpostArns: [String]?
        /// The ID of the replication group to which this cluster should belong. If this parameter is specified, the cluster is added to the specified replication group as a read replica; otherwise, the cluster is a standalone primary that is not part of any replication group. If the specified replication group is Multi-AZ enabled and the Availability Zone is not specified, the cluster is created in Availability Zones that provide the best spread of read replicas across Availability Zones.  This parameter is only valid if the Engine parameter is redis.
        public let replicationGroupId: String?
        /// One or more VPC security groups associated with the cluster. Use this parameter only when you are creating a cluster in an Amazon Virtual Private Cloud (Amazon VPC).
        @OptionalCustomCoding<ArrayCoder<_SecurityGroupIdsEncoding, String>>
        public var securityGroupIds: [String]?
        /// A single-element string list containing an Amazon Resource Name (ARN) that uniquely identifies a Valkey or Redis OSS RDB snapshot file stored in Amazon S3. The snapshot file is used to populate the node group (shard). The Amazon S3 object name in the ARN cannot contain any commas.  This parameter is only valid if the Engine parameter is redis.  Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb
        @OptionalCustomCoding<ArrayCoder<_SnapshotArnsEncoding, String>>
        public var snapshotArns: [String]?
        /// The name of a Valkey or Redis OSS snapshot from which to restore data into the new node group (shard). The snapshot status changes to restoring while the new node group (shard) is being created.  This parameter is only valid if the Engine parameter is redis.
        public let snapshotName: String?
        /// The number of days for which ElastiCache retains automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot taken today is retained for 5 days before being deleted.  This parameter is only valid if the Engine parameter is redis.  Default: 0 (i.e., automatic backups are disabled for this cache cluster).
        public let snapshotRetentionLimit: Int?
        /// The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard). Example: 05:00-09:00  If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.  This parameter is only valid if the Engine parameter is redis.
        public let snapshotWindow: String?
        /// A list of tags to be added to this resource.
        @OptionalCustomCoding<ArrayCoder<_TagsEncoding, Tag>>
        public var tags: [Tag]?
        /// A flag that enables in-transit encryption when set to true.
        public let transitEncryptionEnabled: Bool?

        @inlinable
        public init(authToken: String? = nil, autoMinorVersionUpgrade: Bool? = nil, azMode: AZMode? = nil, cacheClusterId: String? = nil, cacheNodeType: String? = nil, cacheParameterGroupName: String? = nil, cacheSecurityGroupNames: [String]? = nil, cacheSubnetGroupName: String? = nil, engine: String? = nil, engineVersion: String? = nil, ipDiscovery: IpDiscovery? = nil, logDeliveryConfigurations: [LogDeliveryConfigurationRequest]? = nil, networkType: NetworkType? = nil, notificationTopicArn: String? = nil, numCacheNodes: Int? = nil, outpostMode: OutpostMode? = nil, port: Int? = nil, preferredAvailabilityZone: String? = nil, preferredAvailabilityZones: [String]? = nil, preferredMaintenanceWindow: String? = nil, preferredOutpostArn: String? = nil, preferredOutpostArns: [String]? = nil, replicationGroupId: String? = nil, securityGroupIds: [String]? = nil, snapshotArns: [String]? = nil, snapshotName: String? = nil, snapshotRetentionLimit: Int? = nil, snapshotWindow: String? = nil, tags: [Tag]? = nil, transitEncryptionEnabled: Bool? = nil) {
            self.authToken = authToken
            self.autoMinorVersionUpgrade = autoMinorVersionUpgrade
            self.azMode = azMode
            self.cacheClusterId = cacheClusterId
            self.cacheNodeType = cacheNodeType
            self.cacheParameterGroupName = cacheParameterGroupName
            self.cacheSecurityGroupNames = cacheSecurityGroupNames
            self.cacheSubnetGroupName = cacheSubnetGroupName
            self.engine = engine
            self.engineVersion = engineVersion
            self.ipDiscovery = ipDiscovery
            self.logDeliveryConfigurations = logDeliveryConfigurations
            self.networkType = networkType
            self.notificationTopicArn = notificationTopicArn
            self.numCacheNodes = numCacheNodes
            self.outpostMode = outpostMode
            self.port = port
            self.preferredAvailabilityZone = preferredAvailabilityZone
            self.preferredAvailabilityZones = preferredAvailabilityZones
            self.preferredMaintenanceWindow = preferredMaintenanceWindow
            self.preferredOutpostArn = preferredOutpostArn
            self.preferredOutpostArns = preferredOutpostArns
            self.replicationGroupId = replicationGroupId
            self.securityGroupIds = securityGroupIds
            self.snapshotArns = snapshotArns
            self.snapshotName = snapshotName
            self.snapshotRetentionLimit = snapshotRetentionLimit
            self.snapshotWindow = snapshotWindow
            self.tags = tags
            self.transitEncryptionEnabled = transitEncryptionEnabled
        }

        private enum CodingKeys: String, CodingKey {
            case authToken = "AuthToken"
            case autoMinorVersionUpgrade = "AutoMinorVersionUpgrade"
            case azMode = "AZMode"
            case cacheClusterId = "CacheClusterId"
            case cacheNodeType = "CacheNodeType"
            case cacheParameterGroupName = "CacheParameterGroupName"
            case cacheSecurityGroupNames = "CacheSecurityGroupNames"
            case cacheSubnetGroupName = "CacheSubnetGroupName"
            case engine = "Engine"
            case engineVersion = "EngineVersion"
            case ipDiscovery = "IpDiscovery"
            case logDeliveryConfigurations = "LogDeliveryConfigurations"
            case networkType = "NetworkType"
            case notificationTopicArn = "NotificationTopicArn"
            case numCacheNodes = "NumCacheNodes"
            case outpostMode = "OutpostMode"
            case port = "Port"
            case preferredAvailabilityZone = "PreferredAvailabilityZone"
            case preferredAvailabilityZones = "PreferredAvailabilityZones"
            case preferredMaintenanceWindow = "PreferredMaintenanceWindow"
            case preferredOutpostArn = "PreferredOutpostArn"
            case preferredOutpostArns = "PreferredOutpostArns"
            case replicationGroupId = "ReplicationGroupId"
            case securityGroupIds = "SecurityGroupIds"
            case snapshotArns = "SnapshotArns"
            case snapshotName = "SnapshotName"
            case snapshotRetentionLimit = "SnapshotRetentionLimit"
            case snapshotWindow = "SnapshotWindow"
            case tags = "Tags"
            case transitEncryptionEnabled = "TransitEncryptionEnabled"
        }
    }

    public struct CreateCacheClusterResult: AWSDecodableShape {
        public let cacheCluster: CacheCluster?

        @inlinable
        public init(cacheCluster: CacheCluster? = nil) {
            self.cacheCluster = cacheCluster
        }

        private enum CodingKeys: String, CodingKey {
            case cacheCluster = "CacheCluster"
        }
    }

    public struct CreateCacheParameterGroupMessage: AWSEncodableShape {
        public struct _TagsEncoding: ArrayCoderProperties { public static let member = "Tag" }

        /// The name of the cache parameter group family that the cache parameter group can be used with. Valid values are: valkey8 | valkey7 | memcached1.4 | memcached1.5 | memcached1.6 | redis2.6 | redis2.8 |
        /// redis3.2 | redis4.0 | redis5.0 | redis6.x | redis7
        public let cacheParameterGroupFamily: String?
        /// A user-specified name for the cache parameter group.
        public let cacheParameterGroupName: String?
        /// A user-specified description for the cache parameter group.
        public let description: String?
        /// A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
        @OptionalCustomCoding<ArrayCoder<_TagsEncoding, Tag>>
        public var tags: [Tag]?

        @inlinable
        public init(cacheParameterGroupFamily: String? = nil, cacheParameterGroupName: String? = nil, description: String? = nil, tags: [Tag]? = nil) {
            self.cacheParameterGroupFamily = cacheParameterGroupFamily
            self.cacheParameterGroupName = cacheParameterGroupName
            self.description = description
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case cacheParameterGroupFamily = "CacheParameterGroupFamily"
            case cacheParameterGroupName = "CacheParameterGroupName"
            case description = "Description"
            case tags = "Tags"
        }
    }

    public struct CreateCacheParameterGroupResult: AWSDecodableShape {
        public let cacheParameterGroup: CacheParameterGroup?

        @inlinable
        public init(cacheParameterGroup: CacheParameterGroup? = nil) {
            self.cacheParameterGroup = cacheParameterGroup
        }

        private enum CodingKeys: String, CodingKey {
            case cacheParameterGroup = "CacheParameterGroup"
        }
    }

    public struct CreateCacheSecurityGroupMessage: AWSEncodableShape {
        public struct _TagsEncoding: ArrayCoderProperties { public static let member = "Tag" }

        /// A name for the cache security group. This value is stored as a lowercase string. Constraints: Must contain no more than 255 alphanumeric characters. Cannot be the word "Default". Example: mysecuritygroup
        public let cacheSecurityGroupName: String?
        /// A description for the cache security group.
        public let description: String?
        /// A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
        @OptionalCustomCoding<ArrayCoder<_TagsEncoding, Tag>>
        public var tags: [Tag]?

        @inlinable
        public init(cacheSecurityGroupName: String? = nil, description: String? = nil, tags: [Tag]? = nil) {
            self.cacheSecurityGroupName = cacheSecurityGroupName
            self.description = description
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case cacheSecurityGroupName = "CacheSecurityGroupName"
            case description = "Description"
            case tags = "Tags"
        }
    }

    public struct CreateCacheSecurityGroupResult: AWSDecodableShape {
        public let cacheSecurityGroup: CacheSecurityGroup?

        @inlinable
        public init(cacheSecurityGroup: CacheSecurityGroup? = nil) {
            self.cacheSecurityGroup = cacheSecurityGroup
        }

        private enum CodingKeys: String, CodingKey {
            case cacheSecurityGroup = "CacheSecurityGroup"
        }
    }

    public struct CreateCacheSubnetGroupMessage: AWSEncodableShape {
        public struct _SubnetIdsEncoding: ArrayCoderProperties { public static let member = "SubnetIdentifier" }
        public struct _TagsEncoding: ArrayCoderProperties { public static let member = "Tag" }

        /// A description for the cache subnet group.
        public let cacheSubnetGroupDescription: String?
        /// A name for the cache subnet group. This value is stored as a lowercase string. Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Example: mysubnetgroup
        public let cacheSubnetGroupName: String?
        /// A list of VPC subnet IDs for the cache subnet group.
        @OptionalCustomCoding<ArrayCoder<_SubnetIdsEncoding, String>>
        public var subnetIds: [String]?
        /// A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
        @OptionalCustomCoding<ArrayCoder<_TagsEncoding, Tag>>
        public var tags: [Tag]?

        @inlinable
        public init(cacheSubnetGroupDescription: String? = nil, cacheSubnetGroupName: String? = nil, subnetIds: [String]? = nil, tags: [Tag]? = nil) {
            self.cacheSubnetGroupDescription = cacheSubnetGroupDescription
            self.cacheSubnetGroupName = cacheSubnetGroupName
            self.subnetIds = subnetIds
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case cacheSubnetGroupDescription = "CacheSubnetGroupDescription"
            case cacheSubnetGroupName = "CacheSubnetGroupName"
            case subnetIds = "SubnetIds"
            case tags = "Tags"
        }
    }

    public struct CreateCacheSubnetGroupResult: AWSDecodableShape {
        public let cacheSubnetGroup: CacheSubnetGroup?

        @inlinable
        public init(cacheSubnetGroup: CacheSubnetGroup? = nil) {
            self.cacheSubnetGroup = cacheSubnetGroup
        }

        private enum CodingKeys: String, CodingKey {
            case cacheSubnetGroup = "CacheSubnetGroup"
        }
    }

    public struct CreateGlobalReplicationGroupMessage: AWSEncodableShape {
        /// Provides details of the Global datastore
        public let globalReplicationGroupDescription: String?
        /// The suffix name of a Global datastore. Amazon ElastiCache automatically applies a prefix to the Global datastore ID when it is created. Each Amazon Region has its own prefix. For instance, a Global datastore ID created in the US-West-1 region will begin with "dsdfu" along with the suffix name you provide. The suffix, combined with the auto-generated prefix, guarantees uniqueness of the Global datastore name across multiple regions.  For a full list of Amazon Regions and their respective Global datastore iD prefixes, see Using the Amazon CLI with Global datastores .
        public let globalReplicationGroupIdSuffix: String?
        /// The name of the primary cluster that accepts writes and will replicate updates to the secondary cluster.
        public let primaryReplicationGroupId: String?

        @inlinable
        public init(globalReplicationGroupDescription: String? = nil, globalReplicationGroupIdSuffix: String? = nil, primaryReplicationGroupId: String? = nil) {
            self.globalReplicationGroupDescription = globalReplicationGroupDescription
            self.globalReplicationGroupIdSuffix = globalReplicationGroupIdSuffix
            self.primaryReplicationGroupId = primaryReplicationGroupId
        }

        private enum CodingKeys: String, CodingKey {
            case globalReplicationGroupDescription = "GlobalReplicationGroupDescription"
            case globalReplicationGroupIdSuffix = "GlobalReplicationGroupIdSuffix"
            case primaryReplicationGroupId = "PrimaryReplicationGroupId"
        }
    }

    public struct CreateGlobalReplicationGroupResult: AWSDecodableShape {
        public let globalReplicationGroup: GlobalReplicationGroup?

        @inlinable
        public init(globalReplicationGroup: GlobalReplicationGroup? = nil) {
            self.globalReplicationGroup = globalReplicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case globalReplicationGroup = "GlobalReplicationGroup"
        }
    }

    public struct CreateReplicationGroupMessage: AWSEncodableShape {
        public struct _CacheSecurityGroupNamesEncoding: ArrayCoderProperties { public static let member = "CacheSecurityGroupName" }
        public struct _LogDeliveryConfigurationsEncoding: ArrayCoderProperties { public static let member = "LogDeliveryConfigurationRequest" }
        public struct _NodeGroupConfigurationEncoding: ArrayCoderProperties { public static let member = "NodeGroupConfiguration" }
        public struct _PreferredCacheClusterAZsEncoding: ArrayCoderProperties { public static let member = "AvailabilityZone" }
        public struct _SecurityGroupIdsEncoding: ArrayCoderProperties { public static let member = "SecurityGroupId" }
        public struct _SnapshotArnsEncoding: ArrayCoderProperties { public static let member = "SnapshotArn" }
        public struct _TagsEncoding: ArrayCoderProperties { public static let member = "Tag" }

        /// A flag that enables encryption at rest when set to true. You cannot modify the value of AtRestEncryptionEnabled after the replication group is created. To enable encryption at rest on a replication group you must set AtRestEncryptionEnabled to true when you create the replication group.   Required: Only available when creating a replication group in an Amazon VPC using Valkey 7.2 and later, Redis OSS version 3.2.6, or Redis OSS 4.x and later. Default: true when using Valkey, false when using Redis OSS
        public let atRestEncryptionEnabled: Bool?
        ///  Reserved parameter. The password used to access a password protected server.  AuthToken can be specified only on replication groups where TransitEncryptionEnabled is true.  For HIPAA compliance, you must specify TransitEncryptionEnabled as true, an AuthToken, and a CacheSubnetGroup.  Password constraints:   Must be only printable ASCII characters.   Must be at least 16 characters and no more than 128 characters in length.   The only permitted printable special characters are !, &, #, $, ^, , and -. Other printable special characters cannot be used in the AUTH token.   For more information, see AUTH password at http://redis.io/commands/AUTH.
        public let authToken: String?
        /// Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.  AutomaticFailoverEnabled must be enabled for Valkey or Redis OSS (cluster mode enabled) replication groups. Default: false
        public let automaticFailoverEnabled: Bool?
        ///  If you are running Valkey 7.2 and above or Redis OSS engine version 6.0 and above, set this parameter to yes  to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
        public let autoMinorVersionUpgrade: Bool?
        /// The compute and memory capacity of the nodes in the node group (shard). The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.   General purpose:   Current generation:   M7g node types: 					cache.m7g.large, 					cache.m7g.xlarge, 					cache.m7g.2xlarge, 					cache.m7g.4xlarge, 					cache.m7g.8xlarge, 					cache.m7g.12xlarge, 					cache.m7g.16xlarge   For region availability, see Supported Node Types    M6g node types (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
        ///
        /// 					 	cache.m6g.large,
        /// 							cache.m6g.xlarge,
        /// 							cache.m6g.2xlarge,
        /// 							cache.m6g.4xlarge,
        /// 							cache.m6g.8xlarge,
        /// 							cache.m6g.12xlarge,
        /// 							cache.m6g.16xlarge   M5 node types: cache.m5.large, 						cache.m5.xlarge, 						cache.m5.2xlarge, 						cache.m5.4xlarge, 						cache.m5.12xlarge, 						cache.m5.24xlarge   M4 node types: cache.m4.large, 						cache.m4.xlarge, 						cache.m4.2xlarge, 						cache.m4.4xlarge, 						cache.m4.10xlarge   T4g node types (available only for Redis OSS engine version 5.0.6 onward and Memcached engine version 1.5.16 onward):
        /// 					        cache.t4g.micro,
        /// 					        cache.t4g.small,
        /// 					        cache.t4g.medium   T3 node types: cache.t3.micro,  						cache.t3.small, 						cache.t3.medium   T2 node types: cache.t2.micro,  						cache.t2.small, 						cache.t2.medium    Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  T1 node types: cache.t1.micro   M1 node types: cache.m1.small,
        /// 						   cache.m1.medium,
        /// 						   cache.m1.large,
        /// 						   cache.m1.xlarge   M3 node types: cache.m3.medium, 						cache.m3.large,  						cache.m3.xlarge, 						cache.m3.2xlarge      Compute optimized:   Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  C1 node types: cache.c1.xlarge      Memory optimized:   Current generation:   R7g node types:
        /// 							cache.r7g.large,
        /// 							cache.r7g.xlarge,
        /// 							cache.r7g.2xlarge,
        /// 							cache.r7g.4xlarge,
        /// 							cache.r7g.8xlarge,
        /// 							cache.r7g.12xlarge,
        /// 							cache.r7g.16xlarge   For region availability, see Supported Node Types    R6g node types (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
        /// 							cache.r6g.large,
        /// 							cache.r6g.xlarge,
        /// 							cache.r6g.2xlarge,
        /// 							cache.r6g.4xlarge,
        /// 							cache.r6g.8xlarge,
        /// 							cache.r6g.12xlarge,
        /// 							cache.r6g.16xlarge   R5 node types: cache.r5.large, 					   cache.r5.xlarge, 					   cache.r5.2xlarge, 					   cache.r5.4xlarge, 					   cache.r5.12xlarge, 					   cache.r5.24xlarge   R4 node types: cache.r4.large, 					   cache.r4.xlarge, 					   cache.r4.2xlarge, 					   cache.r4.4xlarge, 					   cache.r4.8xlarge, 					   cache.r4.16xlarge    Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  M2 node types: cache.m2.xlarge,  						cache.m2.2xlarge, 						cache.m2.4xlarge   R3 node types: cache.r3.large,  						cache.r3.xlarge, 						cache.r3.2xlarge,   						cache.r3.4xlarge, 						cache.r3.8xlarge       Additional node type info    All current generation instance types are created in Amazon VPC by default.   Valkey or Redis OSS append-only files (AOF) are not supported for T1 or T2 instances.   Valkey or Redis OSS Multi-AZ with automatic failover is not supported on T1 instances.   The configuration variables appendonly and appendfsync are not supported on Valkey, or on Redis OSS version 2.8.22 and later.
        public let cacheNodeType: String?
        /// The name of the parameter group to associate with this replication group. If this argument is omitted, the default cache parameter group for the specified engine is used. If you are running Valkey or Redis OSS version 3.2.4 or later, only one node group (shard), and want to use a default parameter group, we recommend that you specify the parameter group by name.    To create a Valkey or Redis OSS (cluster mode disabled) replication group, use CacheParameterGroupName=default.redis3.2.   To create a Valkey or Redis OSS (cluster mode enabled) replication group, use CacheParameterGroupName=default.redis3.2.cluster.on.
        public let cacheParameterGroupName: String?
        /// A list of cache security group names to associate with this replication group.
        @OptionalCustomCoding<ArrayCoder<_CacheSecurityGroupNamesEncoding, String>>
        public var cacheSecurityGroupNames: [String]?
        /// The name of the cache subnet group to be used for the replication group.  If you're going to launch your cluster in an Amazon VPC, you need to create a subnet group before you start creating a cluster. For more information, see Subnets and Subnet Groups.
        public let cacheSubnetGroupName: String?
        /// Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Valkey or Redis OSS clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Valkey or Redis OSS  clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.
        public let clusterMode: ClusterMode?
        /// Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. For more information, see Data tiering.
        public let dataTieringEnabled: Bool?
        /// The name of the cache engine to be used for the clusters in this replication group. The value must be set to valkey or redis.
        public let engine: String?
        /// The version number of the cache engine to be used for the clusters in this replication group. To view the supported cache engine versions, use the DescribeCacheEngineVersions operation.  Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version) in the ElastiCache User Guide, but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster or replication group and create it anew with the earlier engine version.
        public let engineVersion: String?
        /// The name of the Global datastore
        public let globalReplicationGroupId: String?
        /// The network type you choose when creating a replication group, either ipv4 | ipv6. IPv6 is supported for workloads using Valkey 7.2 and above, Redis OSS engine version 6.2 to 7.1 or Memcached engine version 1.6.6 and above on all instances built on the Nitro system.
        public let ipDiscovery: IpDiscovery?
        /// The ID of the KMS key used to encrypt the disk in the cluster.
        public let kmsKeyId: String?
        /// Specifies the destination, format and type of the logs.
        @OptionalCustomCoding<ArrayCoder<_LogDeliveryConfigurationsEncoding, LogDeliveryConfigurationRequest>>
        public var logDeliveryConfigurations: [LogDeliveryConfigurationRequest]?
        /// A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For more information, see Minimizing Downtime: Multi-AZ.
        public let multiAZEnabled: Bool?
        /// Must be either ipv4 | ipv6 | dual_stack. IPv6 is supported for workloads using Valkey 7.2 and above, Redis OSS engine version 6.2 to 7.1 and Memcached engine version 1.6.6 and above on all instances built on the Nitro system.
        public let networkType: NetworkType?
        /// A list of node group (shard) configuration options. Each node group (shard) configuration has the following members: PrimaryAvailabilityZone, ReplicaAvailabilityZones, ReplicaCount, and Slots. If you're creating a Valkey or Redis OSS (cluster mode disabled) or a Valkey or Redis OSS (cluster mode enabled) replication group, you can use this parameter to individually configure each node group (shard), or you can omit this parameter. However, it is required when seeding a Valkey or Redis OSS (cluster mode enabled) cluster from a S3 rdb file. You must configure each node group (shard) using this parameter because you must specify the slots for each node group.
        @OptionalCustomCoding<ArrayCoder<_NodeGroupConfigurationEncoding, NodeGroupConfiguration>>
        public var nodeGroupConfiguration: [NodeGroupConfiguration]?
        /// The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent.  The Amazon SNS topic owner must be the same as the cluster owner.
        public let notificationTopicArn: String?
        /// The number of clusters this replication group initially has. This parameter is not used if there is more than one node group (shard). You should use ReplicasPerNodeGroup instead. If AutomaticFailoverEnabled is true, the value of this parameter must be at least 2. If AutomaticFailoverEnabled is false you can omit this parameter (it will default to 1), or you can explicitly set it to a value between 2 and 6. The maximum permitted value for NumCacheClusters is 6 (1 primary plus 5 replicas).
        public let numCacheClusters: Int?
        /// An optional parameter that specifies the number of node groups (shards) for this Valkey or Redis OSS (cluster mode enabled) replication group. For Valkey or Redis OSS (cluster mode disabled) either omit this parameter or set it to 1. Default: 1
        public let numNodeGroups: Int?
        /// The port number on which each member of the replication group accepts connections.
        public let port: Int?
        /// A list of EC2 Availability Zones in which the replication group's clusters are created. The order of the Availability Zones in the list is the order in which clusters are allocated. The primary cluster is created in the first AZ in the list. This parameter is not used if there is more than one node group (shard). You should use NodeGroupConfiguration instead.  If you are creating your replication group in an Amazon VPC (recommended), you can only locate clusters in Availability Zones associated with the subnets in the selected subnet group. The number of Availability Zones listed must equal the value of NumCacheClusters.  Default: system chosen Availability Zones.
        @OptionalCustomCoding<ArrayCoder<_PreferredCacheClusterAZsEncoding, String>>
        public var preferredCacheClusterAZs: [String]?
        /// Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:    sun     mon     tue     wed     thu     fri     sat    Example: sun:23:00-mon:01:30
        public let preferredMaintenanceWindow: String?
        /// The identifier of the cluster that serves as the primary for this replication group. This cluster must already exist and have a status of available. This parameter is not required if NumCacheClusters, NumNodeGroups, or ReplicasPerNodeGroup is specified.
        public let primaryClusterId: String?
        /// An optional parameter that specifies the number of replica nodes in each node group (shard). Valid values are 0 to 5.
        public let replicasPerNodeGroup: Int?
        /// A user-created description for the replication group.
        public let replicationGroupDescription: String?
        /// The replication group identifier. This parameter is stored as a lowercase string. Constraints:   A name must contain from 1 to 40 alphanumeric characters or hyphens.   The first character must be a letter.   A name cannot end with a hyphen or contain two consecutive hyphens.
        public let replicationGroupId: String?
        /// One or more Amazon VPC security groups associated with this replication group. Use this parameter only when you are creating a replication group in an Amazon Virtual Private Cloud (Amazon VPC).
        @OptionalCustomCoding<ArrayCoder<_SecurityGroupIdsEncoding, String>>
        public var securityGroupIds: [String]?
        /// The name of the snapshot used to create a replication group. Available for Valkey, Redis OSS only.
        public let serverlessCacheSnapshotName: String?
        /// A list of Amazon Resource Names (ARN) that uniquely identify the Valkey or Redis OSS RDB snapshot files stored in Amazon S3. The snapshot files are used to populate the new replication group. The Amazon S3 object name in the ARN cannot contain any commas. The new replication group will have the number of node groups (console: shards) specified by the parameter NumNodeGroups or the number of node groups configured by NodeGroupConfiguration regardless of the number of ARNs specified here. Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb
        @OptionalCustomCoding<ArrayCoder<_SnapshotArnsEncoding, String>>
        public var snapshotArns: [String]?
        /// The name of a snapshot from which to restore data into the new replication group. The snapshot status changes to restoring while the new replication group is being created.
        public let snapshotName: String?
        /// The number of days for which ElastiCache retains automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted. Default: 0 (i.e., automatic backups are disabled for this cluster).
        public let snapshotRetentionLimit: Int?
        /// The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard). Example: 05:00-09:00  If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
        public let snapshotWindow: String?
        /// A list of tags to be added to this resource. Tags are comma-separated key,value pairs (e.g. Key=myKey, Value=myKeyValue. You can include multiple tags as shown following: Key=myKey, Value=myKeyValue Key=mySecondKey, Value=mySecondKeyValue. Tags on replication groups will be replicated to all nodes.
        @OptionalCustomCoding<ArrayCoder<_TagsEncoding, Tag>>
        public var tags: [Tag]?
        /// A flag that enables in-transit encryption when set to true. This parameter is valid only if the Engine parameter is redis, the EngineVersion parameter is 3.2.6, 4.x or later, and the cluster is being created in an Amazon VPC. If you enable in-transit encryption, you must also specify a value for CacheSubnetGroup.  Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version 3.2.6, 4.x or later. Default: false   For HIPAA compliance, you must specify TransitEncryptionEnabled as true, an AuthToken, and a CacheSubnetGroup.
        public let transitEncryptionEnabled: Bool?
        /// A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. When setting TransitEncryptionEnabled to true, you can set your TransitEncryptionMode to preferred in the same request, to allow both encrypted and unencrypted connections at the same time. Once you migrate all your Valkey or Redis OSS clients to use encrypted connections you can modify the value to required to allow encrypted connections only. Setting TransitEncryptionMode to required is a two-step process that requires you to first set the TransitEncryptionMode to preferred, after that you can set TransitEncryptionMode to required. This process will not trigger the replacement of the replication group.
        public let transitEncryptionMode: TransitEncryptionMode?
        /// The user group to associate with the replication group.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var userGroupIds: [String]?

        @inlinable
        public init(atRestEncryptionEnabled: Bool? = nil, authToken: String? = nil, automaticFailoverEnabled: Bool? = nil, autoMinorVersionUpgrade: Bool? = nil, cacheNodeType: String? = nil, cacheParameterGroupName: String? = nil, cacheSecurityGroupNames: [String]? = nil, cacheSubnetGroupName: String? = nil, clusterMode: ClusterMode? = nil, dataTieringEnabled: Bool? = nil, engine: String? = nil, engineVersion: String? = nil, globalReplicationGroupId: String? = nil, ipDiscovery: IpDiscovery? = nil, kmsKeyId: String? = nil, logDeliveryConfigurations: [LogDeliveryConfigurationRequest]? = nil, multiAZEnabled: Bool? = nil, networkType: NetworkType? = nil, nodeGroupConfiguration: [NodeGroupConfiguration]? = nil, notificationTopicArn: String? = nil, numCacheClusters: Int? = nil, numNodeGroups: Int? = nil, port: Int? = nil, preferredCacheClusterAZs: [String]? = nil, preferredMaintenanceWindow: String? = nil, primaryClusterId: String? = nil, replicasPerNodeGroup: Int? = nil, replicationGroupDescription: String? = nil, replicationGroupId: String? = nil, securityGroupIds: [String]? = nil, serverlessCacheSnapshotName: String? = nil, snapshotArns: [String]? = nil, snapshotName: String? = nil, snapshotRetentionLimit: Int? = nil, snapshotWindow: String? = nil, tags: [Tag]? = nil, transitEncryptionEnabled: Bool? = nil, transitEncryptionMode: TransitEncryptionMode? = nil, userGroupIds: [String]? = nil) {
            self.atRestEncryptionEnabled = atRestEncryptionEnabled
            self.authToken = authToken
            self.automaticFailoverEnabled = automaticFailoverEnabled
            self.autoMinorVersionUpgrade = autoMinorVersionUpgrade
            self.cacheNodeType = cacheNodeType
            self.cacheParameterGroupName = cacheParameterGroupName
            self.cacheSecurityGroupNames = cacheSecurityGroupNames
            self.cacheSubnetGroupName = cacheSubnetGroupName
            self.clusterMode = clusterMode
            self.dataTieringEnabled = dataTieringEnabled
            self.engine = engine
            self.engineVersion = engineVersion
            self.globalReplicationGroupId = globalReplicationGroupId
            self.ipDiscovery = ipDiscovery
            self.kmsKeyId = kmsKeyId
            self.logDeliveryConfigurations = logDeliveryConfigurations
            self.multiAZEnabled = multiAZEnabled
            self.networkType = networkType
            self.nodeGroupConfiguration = nodeGroupConfiguration
            self.notificationTopicArn = notificationTopicArn
            self.numCacheClusters = numCacheClusters
            self.numNodeGroups = numNodeGroups
            self.port = port
            self.preferredCacheClusterAZs = preferredCacheClusterAZs
            self.preferredMaintenanceWindow = preferredMaintenanceWindow
            self.primaryClusterId = primaryClusterId
            self.replicasPerNodeGroup = replicasPerNodeGroup
            self.replicationGroupDescription = replicationGroupDescription
            self.replicationGroupId = replicationGroupId
            self.securityGroupIds = securityGroupIds
            self.serverlessCacheSnapshotName = serverlessCacheSnapshotName
            self.snapshotArns = snapshotArns
            self.snapshotName = snapshotName
            self.snapshotRetentionLimit = snapshotRetentionLimit
            self.snapshotWindow = snapshotWindow
            self.tags = tags
            self.transitEncryptionEnabled = transitEncryptionEnabled
            self.transitEncryptionMode = transitEncryptionMode
            self.userGroupIds = userGroupIds
        }

        public func validate(name: String) throws {
            try self.nodeGroupConfiguration?.forEach {
                try $0.validate(name: "\(name).nodeGroupConfiguration[]")
            }
            try self.userGroupIds?.forEach {
                try validate($0, name: "userGroupIds[]", parent: name, min: 1)
                try validate($0, name: "userGroupIds[]", parent: name, pattern: "^[a-zA-Z][a-zA-Z0-9\\-]*$")
            }
            try self.validate(self.userGroupIds, name: "userGroupIds", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case atRestEncryptionEnabled = "AtRestEncryptionEnabled"
            case authToken = "AuthToken"
            case automaticFailoverEnabled = "AutomaticFailoverEnabled"
            case autoMinorVersionUpgrade = "AutoMinorVersionUpgrade"
            case cacheNodeType = "CacheNodeType"
            case cacheParameterGroupName = "CacheParameterGroupName"
            case cacheSecurityGroupNames = "CacheSecurityGroupNames"
            case cacheSubnetGroupName = "CacheSubnetGroupName"
            case clusterMode = "ClusterMode"
            case dataTieringEnabled = "DataTieringEnabled"
            case engine = "Engine"
            case engineVersion = "EngineVersion"
            case globalReplicationGroupId = "GlobalReplicationGroupId"
            case ipDiscovery = "IpDiscovery"
            case kmsKeyId = "KmsKeyId"
            case logDeliveryConfigurations = "LogDeliveryConfigurations"
            case multiAZEnabled = "MultiAZEnabled"
            case networkType = "NetworkType"
            case nodeGroupConfiguration = "NodeGroupConfiguration"
            case notificationTopicArn = "NotificationTopicArn"
            case numCacheClusters = "NumCacheClusters"
            case numNodeGroups = "NumNodeGroups"
            case port = "Port"
            case preferredCacheClusterAZs = "PreferredCacheClusterAZs"
            case preferredMaintenanceWindow = "PreferredMaintenanceWindow"
            case primaryClusterId = "PrimaryClusterId"
            case replicasPerNodeGroup = "ReplicasPerNodeGroup"
            case replicationGroupDescription = "ReplicationGroupDescription"
            case replicationGroupId = "ReplicationGroupId"
            case securityGroupIds = "SecurityGroupIds"
            case serverlessCacheSnapshotName = "ServerlessCacheSnapshotName"
            case snapshotArns = "SnapshotArns"
            case snapshotName = "SnapshotName"
            case snapshotRetentionLimit = "SnapshotRetentionLimit"
            case snapshotWindow = "SnapshotWindow"
            case tags = "Tags"
            case transitEncryptionEnabled = "TransitEncryptionEnabled"
            case transitEncryptionMode = "TransitEncryptionMode"
            case userGroupIds = "UserGroupIds"
        }
    }

    public struct CreateReplicationGroupResult: AWSDecodableShape {
        public let replicationGroup: ReplicationGroup?

        @inlinable
        public init(replicationGroup: ReplicationGroup? = nil) {
            self.replicationGroup = replicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case replicationGroup = "ReplicationGroup"
        }
    }

    public struct CreateServerlessCacheRequest: AWSEncodableShape {
        public struct _SecurityGroupIdsEncoding: ArrayCoderProperties { public static let member = "SecurityGroupId" }
        public struct _SnapshotArnsToRestoreEncoding: ArrayCoderProperties { public static let member = "SnapshotArn" }
        public struct _SubnetIdsEncoding: ArrayCoderProperties { public static let member = "SubnetId" }
        public struct _TagsEncoding: ArrayCoderProperties { public static let member = "Tag" }

        /// Sets the cache usage limits for storage and ElastiCache Processing Units for the cache.
        public let cacheUsageLimits: CacheUsageLimits?
        /// The daily time that snapshots will be created from the new serverless cache. By default this number is populated with  0, i.e. no snapshots will be created on an automatic daily basis. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let dailySnapshotTime: String?
        /// User-provided description for the serverless cache.   The default is NULL, i.e. if no description is provided then an empty string will be returned.  The maximum length is 255 characters.
        public let description: String?
        /// The name of the cache engine to be used for creating the serverless cache.
        public let engine: String?
        /// ARN of the customer managed key for encrypting the data at rest. If no KMS key is provided, a default service key is used.
        public let kmsKeyId: String?
        /// The version of the cache engine that will be used to create the serverless cache.
        public let majorEngineVersion: String?
        /// A list of the one or more VPC security groups to be associated with the serverless cache.  The security group will authorize traffic access for the VPC end-point (private-link).  If no other information is given this will be the VPC’s Default Security Group that is associated with the cluster VPC  end-point.
        @OptionalCustomCoding<ArrayCoder<_SecurityGroupIdsEncoding, String>>
        public var securityGroupIds: [String]?
        /// User-provided identifier for the serverless cache. This parameter is stored as a lowercase string.
        public let serverlessCacheName: String?
        /// The ARN(s) of the snapshot that the new serverless cache will be created from. Available for Valkey, Redis OSS and Serverless Memcached only.
        @OptionalCustomCoding<ArrayCoder<_SnapshotArnsToRestoreEncoding, String>>
        public var snapshotArnsToRestore: [String]?
        /// The number of snapshots that will be retained for the serverless cache that is being created.  As new snapshots beyond this limit are added, the oldest snapshots will be deleted on a rolling basis. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let snapshotRetentionLimit: Int?
        /// A list of the identifiers of the subnets where the VPC endpoint for the serverless cache will be deployed.  All the subnetIds must belong to the same VPC.
        @OptionalCustomCoding<ArrayCoder<_SubnetIdsEncoding, String>>
        public var subnetIds: [String]?
        /// The list of tags (key, value) pairs to be added to the serverless cache resource. Default is NULL.
        @OptionalCustomCoding<ArrayCoder<_TagsEncoding, Tag>>
        public var tags: [Tag]?
        /// The identifier of the UserGroup to be associated with the serverless cache.  Available for Valkey and Redis OSS only. Default is NULL.
        public let userGroupId: String?

        @inlinable
        public init(cacheUsageLimits: CacheUsageLimits? = nil, dailySnapshotTime: String? = nil, description: String? = nil, engine: String? = nil, kmsKeyId: String? = nil, majorEngineVersion: String? = nil, securityGroupIds: [String]? = nil, serverlessCacheName: String? = nil, snapshotArnsToRestore: [String]? = nil, snapshotRetentionLimit: Int? = nil, subnetIds: [String]? = nil, tags: [Tag]? = nil, userGroupId: String? = nil) {
            self.cacheUsageLimits = cacheUsageLimits
            self.dailySnapshotTime = dailySnapshotTime
            self.description = description
            self.engine = engine
            self.kmsKeyId = kmsKeyId
            self.majorEngineVersion = majorEngineVersion
            self.securityGroupIds = securityGroupIds
            self.serverlessCacheName = serverlessCacheName
            self.snapshotArnsToRestore = snapshotArnsToRestore
            self.snapshotRetentionLimit = snapshotRetentionLimit
            self.subnetIds = subnetIds
            self.tags = tags
            self.userGroupId = userGroupId
        }

        private enum CodingKeys: String, CodingKey {
            case cacheUsageLimits = "CacheUsageLimits"
            case dailySnapshotTime = "DailySnapshotTime"
            case description = "Description"
            case engine = "Engine"
            case kmsKeyId = "KmsKeyId"
            case majorEngineVersion = "MajorEngineVersion"
            case securityGroupIds = "SecurityGroupIds"
            case serverlessCacheName = "ServerlessCacheName"
            case snapshotArnsToRestore = "SnapshotArnsToRestore"
            case snapshotRetentionLimit = "SnapshotRetentionLimit"
            case subnetIds = "SubnetIds"
            case tags = "Tags"
            case userGroupId = "UserGroupId"
        }
    }

    public struct CreateServerlessCacheResponse: AWSDecodableShape {
        /// The response for the attempt to create the serverless cache.
        public let serverlessCache: ServerlessCache?

        @inlinable
        public init(serverlessCache: ServerlessCache? = nil) {
            self.serverlessCache = serverlessCache
        }

        private enum CodingKeys: String, CodingKey {
            case serverlessCache = "ServerlessCache"
        }
    }

    public struct CreateServerlessCacheSnapshotRequest: AWSEncodableShape {
        public struct _TagsEncoding: ArrayCoderProperties { public static let member = "Tag" }

        /// The ID of the KMS key used to encrypt the snapshot.  Available for Valkey, Redis OSS and Serverless Memcached only. Default: NULL
        public let kmsKeyId: String?
        /// The name of an existing serverless cache. The snapshot is created from this cache. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let serverlessCacheName: String?
        /// The name for the snapshot being created. Must be unique for the customer account. Available for Valkey, Redis OSS and Serverless Memcached only. Must be between 1 and 255 characters.
        public let serverlessCacheSnapshotName: String?
        /// A list of tags to be added to the snapshot resource. A tag is a key-value pair. Available for Valkey, Redis OSS and Serverless Memcached only.
        @OptionalCustomCoding<ArrayCoder<_TagsEncoding, Tag>>
        public var tags: [Tag]?

        @inlinable
        public init(kmsKeyId: String? = nil, serverlessCacheName: String? = nil, serverlessCacheSnapshotName: String? = nil, tags: [Tag]? = nil) {
            self.kmsKeyId = kmsKeyId
            self.serverlessCacheName = serverlessCacheName
            self.serverlessCacheSnapshotName = serverlessCacheSnapshotName
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case kmsKeyId = "KmsKeyId"
            case serverlessCacheName = "ServerlessCacheName"
            case serverlessCacheSnapshotName = "ServerlessCacheSnapshotName"
            case tags = "Tags"
        }
    }

    public struct CreateServerlessCacheSnapshotResponse: AWSDecodableShape {
        /// The state of a serverless cache snapshot at a specific point in time, to the millisecond. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let serverlessCacheSnapshot: ServerlessCacheSnapshot?

        @inlinable
        public init(serverlessCacheSnapshot: ServerlessCacheSnapshot? = nil) {
            self.serverlessCacheSnapshot = serverlessCacheSnapshot
        }

        private enum CodingKeys: String, CodingKey {
            case serverlessCacheSnapshot = "ServerlessCacheSnapshot"
        }
    }

    public struct CreateSnapshotMessage: AWSEncodableShape {
        public struct _TagsEncoding: ArrayCoderProperties { public static let member = "Tag" }

        /// The identifier of an existing cluster. The snapshot is created from this cluster.
        public let cacheClusterId: String?
        /// The ID of the KMS key used to encrypt the snapshot.
        public let kmsKeyId: String?
        /// The identifier of an existing replication group. The snapshot is created from this replication group.
        public let replicationGroupId: String?
        /// A name for the snapshot being created.
        public let snapshotName: String?
        /// A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
        @OptionalCustomCoding<ArrayCoder<_TagsEncoding, Tag>>
        public var tags: [Tag]?

        @inlinable
        public init(cacheClusterId: String? = nil, kmsKeyId: String? = nil, replicationGroupId: String? = nil, snapshotName: String? = nil, tags: [Tag]? = nil) {
            self.cacheClusterId = cacheClusterId
            self.kmsKeyId = kmsKeyId
            self.replicationGroupId = replicationGroupId
            self.snapshotName = snapshotName
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case cacheClusterId = "CacheClusterId"
            case kmsKeyId = "KmsKeyId"
            case replicationGroupId = "ReplicationGroupId"
            case snapshotName = "SnapshotName"
            case tags = "Tags"
        }
    }

    public struct CreateSnapshotResult: AWSDecodableShape {
        public let snapshot: Snapshot?

        @inlinable
        public init(snapshot: Snapshot? = nil) {
            self.snapshot = snapshot
        }

        private enum CodingKeys: String, CodingKey {
            case snapshot = "Snapshot"
        }
    }

    public struct CreateUserGroupMessage: AWSEncodableShape {
        public struct _TagsEncoding: ArrayCoderProperties { public static let member = "Tag" }

        /// Sets the engine listed in a user group. The options are valkey or redis.
        public let engine: String?
        /// A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted. Available for Valkey and Redis OSS only.
        @OptionalCustomCoding<ArrayCoder<_TagsEncoding, Tag>>
        public var tags: [Tag]?
        /// The ID of the user group.
        public let userGroupId: String?
        /// The list of user IDs that belong to the user group.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var userIds: [String]?

        @inlinable
        public init(engine: String? = nil, tags: [Tag]? = nil, userGroupId: String? = nil, userIds: [String]? = nil) {
            self.engine = engine
            self.tags = tags
            self.userGroupId = userGroupId
            self.userIds = userIds
        }

        public func validate(name: String) throws {
            try self.validate(self.engine, name: "engine", parent: name, pattern: "^[a-zA-Z]*$")
            try self.userIds?.forEach {
                try validate($0, name: "userIds[]", parent: name, min: 1)
                try validate($0, name: "userIds[]", parent: name, pattern: "^[a-zA-Z][a-zA-Z0-9\\-]*$")
            }
            try self.validate(self.userIds, name: "userIds", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case engine = "Engine"
            case tags = "Tags"
            case userGroupId = "UserGroupId"
            case userIds = "UserIds"
        }
    }

    public struct CreateUserMessage: AWSEncodableShape {
        public struct _TagsEncoding: ArrayCoderProperties { public static let member = "Tag" }

        /// Access permissions string used for this user.
        public let accessString: String?
        /// Specifies how to authenticate the user.
        public let authenticationMode: AuthenticationMode?
        /// The options are valkey or redis.
        public let engine: String?
        /// Indicates a password is not required for this user.
        public let noPasswordRequired: Bool?
        /// Passwords used for this user. You can create up to two passwords for each user.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var passwords: [String]?
        /// A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
        @OptionalCustomCoding<ArrayCoder<_TagsEncoding, Tag>>
        public var tags: [Tag]?
        /// The ID of the user.
        public let userId: String?
        /// The username of the user.
        public let userName: String?

        @inlinable
        public init(accessString: String? = nil, authenticationMode: AuthenticationMode? = nil, engine: String? = nil, noPasswordRequired: Bool? = nil, passwords: [String]? = nil, tags: [Tag]? = nil, userId: String? = nil, userName: String? = nil) {
            self.accessString = accessString
            self.authenticationMode = authenticationMode
            self.engine = engine
            self.noPasswordRequired = noPasswordRequired
            self.passwords = passwords
            self.tags = tags
            self.userId = userId
            self.userName = userName
        }

        public func validate(name: String) throws {
            try self.validate(self.accessString, name: "accessString", parent: name, pattern: "\\S")
            try self.authenticationMode?.validate(name: "\(name).authenticationMode")
            try self.validate(self.engine, name: "engine", parent: name, pattern: "^[a-zA-Z]*$")
            try self.validate(self.passwords, name: "passwords", parent: name, min: 1)
            try self.validate(self.userId, name: "userId", parent: name, min: 1)
            try self.validate(self.userId, name: "userId", parent: name, pattern: "^[a-zA-Z][a-zA-Z0-9\\-]*$")
            try self.validate(self.userName, name: "userName", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case accessString = "AccessString"
            case authenticationMode = "AuthenticationMode"
            case engine = "Engine"
            case noPasswordRequired = "NoPasswordRequired"
            case passwords = "Passwords"
            case tags = "Tags"
            case userId = "UserId"
            case userName = "UserName"
        }
    }

    public struct CustomerNodeEndpoint: AWSEncodableShape {
        /// The address of the node endpoint
        public let address: String?
        /// The port of the node endpoint
        public let port: Int?

        @inlinable
        public init(address: String? = nil, port: Int? = nil) {
            self.address = address
            self.port = port
        }

        private enum CodingKeys: String, CodingKey {
            case address = "Address"
            case port = "Port"
        }
    }

    public struct DataStorage: AWSEncodableShape & AWSDecodableShape {
        /// The upper limit for data storage the cache is set to use.
        public let maximum: Int?
        /// The lower limit for data storage the cache is set to use.
        public let minimum: Int?
        /// The unit that the storage is measured in, in GB.
        public let unit: DataStorageUnit?

        @inlinable
        public init(maximum: Int? = nil, minimum: Int? = nil, unit: DataStorageUnit? = nil) {
            self.maximum = maximum
            self.minimum = minimum
            self.unit = unit
        }

        private enum CodingKeys: String, CodingKey {
            case maximum = "Maximum"
            case minimum = "Minimum"
            case unit = "Unit"
        }
    }

    public struct DecreaseNodeGroupsInGlobalReplicationGroupMessage: AWSEncodableShape {
        public struct _GlobalNodeGroupsToRemoveEncoding: ArrayCoderProperties { public static let member = "GlobalNodeGroupId" }
        public struct _GlobalNodeGroupsToRetainEncoding: ArrayCoderProperties { public static let member = "GlobalNodeGroupId" }

        /// Indicates that the shard reconfiguration process begins immediately. At present, the only permitted value for this parameter is true.
        public let applyImmediately: Bool?
        /// If the value of NodeGroupCount is less than the current number of node groups (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is required. GlobalNodeGroupsToRemove is a list of NodeGroupIds to remove from the cluster. ElastiCache will attempt to remove all node groups listed by GlobalNodeGroupsToRemove from the cluster.
        @OptionalCustomCoding<ArrayCoder<_GlobalNodeGroupsToRemoveEncoding, String>>
        public var globalNodeGroupsToRemove: [String]?
        /// If the value of NodeGroupCount is less than the current number of node groups (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is required. GlobalNodeGroupsToRetain is a list of NodeGroupIds to retain from the cluster. ElastiCache will attempt to retain all node groups listed by GlobalNodeGroupsToRetain from the cluster.
        @OptionalCustomCoding<ArrayCoder<_GlobalNodeGroupsToRetainEncoding, String>>
        public var globalNodeGroupsToRetain: [String]?
        /// The name of the Global datastore
        public let globalReplicationGroupId: String?
        /// The number of node groups (shards) that results from the modification of the shard configuration
        public let nodeGroupCount: Int?

        @inlinable
        public init(applyImmediately: Bool? = nil, globalNodeGroupsToRemove: [String]? = nil, globalNodeGroupsToRetain: [String]? = nil, globalReplicationGroupId: String? = nil, nodeGroupCount: Int? = nil) {
            self.applyImmediately = applyImmediately
            self.globalNodeGroupsToRemove = globalNodeGroupsToRemove
            self.globalNodeGroupsToRetain = globalNodeGroupsToRetain
            self.globalReplicationGroupId = globalReplicationGroupId
            self.nodeGroupCount = nodeGroupCount
        }

        private enum CodingKeys: String, CodingKey {
            case applyImmediately = "ApplyImmediately"
            case globalNodeGroupsToRemove = "GlobalNodeGroupsToRemove"
            case globalNodeGroupsToRetain = "GlobalNodeGroupsToRetain"
            case globalReplicationGroupId = "GlobalReplicationGroupId"
            case nodeGroupCount = "NodeGroupCount"
        }
    }

    public struct DecreaseNodeGroupsInGlobalReplicationGroupResult: AWSDecodableShape {
        public let globalReplicationGroup: GlobalReplicationGroup?

        @inlinable
        public init(globalReplicationGroup: GlobalReplicationGroup? = nil) {
            self.globalReplicationGroup = globalReplicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case globalReplicationGroup = "GlobalReplicationGroup"
        }
    }

    public struct DecreaseReplicaCountMessage: AWSEncodableShape {
        public struct _ReplicaConfigurationEncoding: ArrayCoderProperties { public static let member = "ConfigureShard" }

        /// If True, the number of replica nodes is decreased immediately. ApplyImmediately=False is not currently supported.
        public let applyImmediately: Bool?
        /// The number of read replica nodes you want at the completion of this operation. For Valkey or Redis OSS (cluster mode disabled) replication groups, this is the number of replica nodes in the replication group. For Valkey or Redis OSS (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups. The minimum number of replicas in a shard or replication group is:   Valkey or Redis OSS (cluster mode disabled)   If Multi-AZ is enabled: 1   If Multi-AZ is not enabled: 0     Valkey or Redis OSS (cluster mode enabled): 0 (though you will not be able to failover to a replica if your primary node fails)
        public let newReplicaCount: Int?
        /// A list of ConfigureShard objects that can be used to configure each shard in a Valkey or Redis OSS replication group. The ConfigureShard has three members: NewReplicaCount, NodeGroupId, and PreferredAvailabilityZones.
        @OptionalCustomCoding<ArrayCoder<_ReplicaConfigurationEncoding, ConfigureShard>>
        public var replicaConfiguration: [ConfigureShard]?
        /// A list of the node ids to remove from the replication group or node group (shard).
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var replicasToRemove: [String]?
        /// The id of the replication group from which you want to remove replica nodes.
        public let replicationGroupId: String?

        @inlinable
        public init(applyImmediately: Bool? = nil, newReplicaCount: Int? = nil, replicaConfiguration: [ConfigureShard]? = nil, replicasToRemove: [String]? = nil, replicationGroupId: String? = nil) {
            self.applyImmediately = applyImmediately
            self.newReplicaCount = newReplicaCount
            self.replicaConfiguration = replicaConfiguration
            self.replicasToRemove = replicasToRemove
            self.replicationGroupId = replicationGroupId
        }

        public func validate(name: String) throws {
            try self.replicaConfiguration?.forEach {
                try $0.validate(name: "\(name).replicaConfiguration[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case applyImmediately = "ApplyImmediately"
            case newReplicaCount = "NewReplicaCount"
            case replicaConfiguration = "ReplicaConfiguration"
            case replicasToRemove = "ReplicasToRemove"
            case replicationGroupId = "ReplicationGroupId"
        }
    }

    public struct DecreaseReplicaCountResult: AWSDecodableShape {
        public let replicationGroup: ReplicationGroup?

        @inlinable
        public init(replicationGroup: ReplicationGroup? = nil) {
            self.replicationGroup = replicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case replicationGroup = "ReplicationGroup"
        }
    }

    public struct DeleteCacheClusterMessage: AWSEncodableShape {
        /// The cluster identifier for the cluster to be deleted. This parameter is not case sensitive.
        public let cacheClusterId: String?
        /// The user-supplied name of a final cluster snapshot. This is the unique name that identifies the snapshot. ElastiCache creates the snapshot, and then deletes the cluster immediately afterward.
        public let finalSnapshotIdentifier: String?

        @inlinable
        public init(cacheClusterId: String? = nil, finalSnapshotIdentifier: String? = nil) {
            self.cacheClusterId = cacheClusterId
            self.finalSnapshotIdentifier = finalSnapshotIdentifier
        }

        private enum CodingKeys: String, CodingKey {
            case cacheClusterId = "CacheClusterId"
            case finalSnapshotIdentifier = "FinalSnapshotIdentifier"
        }
    }

    public struct DeleteCacheClusterResult: AWSDecodableShape {
        public let cacheCluster: CacheCluster?

        @inlinable
        public init(cacheCluster: CacheCluster? = nil) {
            self.cacheCluster = cacheCluster
        }

        private enum CodingKeys: String, CodingKey {
            case cacheCluster = "CacheCluster"
        }
    }

    public struct DeleteCacheParameterGroupMessage: AWSEncodableShape {
        /// The name of the cache parameter group to delete.  The specified cache security group must not be associated with any clusters.
        public let cacheParameterGroupName: String?

        @inlinable
        public init(cacheParameterGroupName: String? = nil) {
            self.cacheParameterGroupName = cacheParameterGroupName
        }

        private enum CodingKeys: String, CodingKey {
            case cacheParameterGroupName = "CacheParameterGroupName"
        }
    }

    public struct DeleteCacheSecurityGroupMessage: AWSEncodableShape {
        /// The name of the cache security group to delete.  You cannot delete the default security group.
        public let cacheSecurityGroupName: String?

        @inlinable
        public init(cacheSecurityGroupName: String? = nil) {
            self.cacheSecurityGroupName = cacheSecurityGroupName
        }

        private enum CodingKeys: String, CodingKey {
            case cacheSecurityGroupName = "CacheSecurityGroupName"
        }
    }

    public struct DeleteCacheSubnetGroupMessage: AWSEncodableShape {
        /// The name of the cache subnet group to delete. Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
        public let cacheSubnetGroupName: String?

        @inlinable
        public init(cacheSubnetGroupName: String? = nil) {
            self.cacheSubnetGroupName = cacheSubnetGroupName
        }

        private enum CodingKeys: String, CodingKey {
            case cacheSubnetGroupName = "CacheSubnetGroupName"
        }
    }

    public struct DeleteGlobalReplicationGroupMessage: AWSEncodableShape {
        /// The name of the Global datastore
        public let globalReplicationGroupId: String?
        /// The primary replication group is retained as a standalone replication group.
        public let retainPrimaryReplicationGroup: Bool?

        @inlinable
        public init(globalReplicationGroupId: String? = nil, retainPrimaryReplicationGroup: Bool? = nil) {
            self.globalReplicationGroupId = globalReplicationGroupId
            self.retainPrimaryReplicationGroup = retainPrimaryReplicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case globalReplicationGroupId = "GlobalReplicationGroupId"
            case retainPrimaryReplicationGroup = "RetainPrimaryReplicationGroup"
        }
    }

    public struct DeleteGlobalReplicationGroupResult: AWSDecodableShape {
        public let globalReplicationGroup: GlobalReplicationGroup?

        @inlinable
        public init(globalReplicationGroup: GlobalReplicationGroup? = nil) {
            self.globalReplicationGroup = globalReplicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case globalReplicationGroup = "GlobalReplicationGroup"
        }
    }

    public struct DeleteReplicationGroupMessage: AWSEncodableShape {
        /// The name of a final node group (shard) snapshot. ElastiCache creates the snapshot from the primary node in the cluster, rather than one of the replicas; this is to ensure that it captures the freshest data. After the final snapshot is taken, the replication group is immediately deleted.
        public let finalSnapshotIdentifier: String?
        /// The identifier for the cluster to be deleted. This parameter is not case sensitive.
        public let replicationGroupId: String?
        /// If set to true, all of the read replicas are deleted, but the primary node is retained.
        public let retainPrimaryCluster: Bool?

        @inlinable
        public init(finalSnapshotIdentifier: String? = nil, replicationGroupId: String? = nil, retainPrimaryCluster: Bool? = nil) {
            self.finalSnapshotIdentifier = finalSnapshotIdentifier
            self.replicationGroupId = replicationGroupId
            self.retainPrimaryCluster = retainPrimaryCluster
        }

        private enum CodingKeys: String, CodingKey {
            case finalSnapshotIdentifier = "FinalSnapshotIdentifier"
            case replicationGroupId = "ReplicationGroupId"
            case retainPrimaryCluster = "RetainPrimaryCluster"
        }
    }

    public struct DeleteReplicationGroupResult: AWSDecodableShape {
        public let replicationGroup: ReplicationGroup?

        @inlinable
        public init(replicationGroup: ReplicationGroup? = nil) {
            self.replicationGroup = replicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case replicationGroup = "ReplicationGroup"
        }
    }

    public struct DeleteServerlessCacheRequest: AWSEncodableShape {
        /// Name of the final snapshot to be taken before the serverless cache is deleted.  Available for Valkey, Redis OSS and Serverless Memcached only. Default: NULL, i.e. a final snapshot is not taken.
        public let finalSnapshotName: String?
        /// The identifier of the serverless cache to be deleted.
        public let serverlessCacheName: String?

        @inlinable
        public init(finalSnapshotName: String? = nil, serverlessCacheName: String? = nil) {
            self.finalSnapshotName = finalSnapshotName
            self.serverlessCacheName = serverlessCacheName
        }

        private enum CodingKeys: String, CodingKey {
            case finalSnapshotName = "FinalSnapshotName"
            case serverlessCacheName = "ServerlessCacheName"
        }
    }

    public struct DeleteServerlessCacheResponse: AWSDecodableShape {
        /// Provides the details of the specified serverless cache that is about to be deleted.
        public let serverlessCache: ServerlessCache?

        @inlinable
        public init(serverlessCache: ServerlessCache? = nil) {
            self.serverlessCache = serverlessCache
        }

        private enum CodingKeys: String, CodingKey {
            case serverlessCache = "ServerlessCache"
        }
    }

    public struct DeleteServerlessCacheSnapshotRequest: AWSEncodableShape {
        /// Idenfitier of the snapshot to be deleted. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let serverlessCacheSnapshotName: String?

        @inlinable
        public init(serverlessCacheSnapshotName: String? = nil) {
            self.serverlessCacheSnapshotName = serverlessCacheSnapshotName
        }

        private enum CodingKeys: String, CodingKey {
            case serverlessCacheSnapshotName = "ServerlessCacheSnapshotName"
        }
    }

    public struct DeleteServerlessCacheSnapshotResponse: AWSDecodableShape {
        /// The snapshot to be deleted. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let serverlessCacheSnapshot: ServerlessCacheSnapshot?

        @inlinable
        public init(serverlessCacheSnapshot: ServerlessCacheSnapshot? = nil) {
            self.serverlessCacheSnapshot = serverlessCacheSnapshot
        }

        private enum CodingKeys: String, CodingKey {
            case serverlessCacheSnapshot = "ServerlessCacheSnapshot"
        }
    }

    public struct DeleteSnapshotMessage: AWSEncodableShape {
        /// The name of the snapshot to be deleted.
        public let snapshotName: String?

        @inlinable
        public init(snapshotName: String? = nil) {
            self.snapshotName = snapshotName
        }

        private enum CodingKeys: String, CodingKey {
            case snapshotName = "SnapshotName"
        }
    }

    public struct DeleteSnapshotResult: AWSDecodableShape {
        public let snapshot: Snapshot?

        @inlinable
        public init(snapshot: Snapshot? = nil) {
            self.snapshot = snapshot
        }

        private enum CodingKeys: String, CodingKey {
            case snapshot = "Snapshot"
        }
    }

    public struct DeleteUserGroupMessage: AWSEncodableShape {
        /// The ID of the user group.
        public let userGroupId: String?

        @inlinable
        public init(userGroupId: String? = nil) {
            self.userGroupId = userGroupId
        }

        private enum CodingKeys: String, CodingKey {
            case userGroupId = "UserGroupId"
        }
    }

    public struct DeleteUserMessage: AWSEncodableShape {
        /// The ID of the user.
        public let userId: String?

        @inlinable
        public init(userId: String? = nil) {
            self.userId = userId
        }

        public func validate(name: String) throws {
            try self.validate(self.userId, name: "userId", parent: name, min: 1)
            try self.validate(self.userId, name: "userId", parent: name, pattern: "^[a-zA-Z][a-zA-Z0-9\\-]*$")
        }

        private enum CodingKeys: String, CodingKey {
            case userId = "UserId"
        }
    }

    public struct DescribeCacheClustersMessage: AWSEncodableShape {
        /// The user-supplied cluster identifier. If this parameter is specified, only information about that specific cluster is returned. This parameter isn't case sensitive.
        public let cacheClusterId: String?
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100.
        public let maxRecords: Int?
        /// An optional flag that can be included in the DescribeCacheCluster request to show only nodes (API/CLI: clusters) that are not members of a replication group. In practice, this means Memcached and single node Valkey or Redis OSS clusters.
        public let showCacheClustersNotInReplicationGroups: Bool?
        /// An optional flag that can be included in the DescribeCacheCluster request to retrieve information about the individual cache nodes.
        public let showCacheNodeInfo: Bool?

        @inlinable
        public init(cacheClusterId: String? = nil, marker: String? = nil, maxRecords: Int? = nil, showCacheClustersNotInReplicationGroups: Bool? = nil, showCacheNodeInfo: Bool? = nil) {
            self.cacheClusterId = cacheClusterId
            self.marker = marker
            self.maxRecords = maxRecords
            self.showCacheClustersNotInReplicationGroups = showCacheClustersNotInReplicationGroups
            self.showCacheNodeInfo = showCacheNodeInfo
        }

        private enum CodingKeys: String, CodingKey {
            case cacheClusterId = "CacheClusterId"
            case marker = "Marker"
            case maxRecords = "MaxRecords"
            case showCacheClustersNotInReplicationGroups = "ShowCacheClustersNotInReplicationGroups"
            case showCacheNodeInfo = "ShowCacheNodeInfo"
        }
    }

    public struct DescribeCacheEngineVersionsMessage: AWSEncodableShape {
        /// The name of a specific cache parameter group family to return details for. Valid values are: memcached1.4 | memcached1.5 | memcached1.6 | redis2.6 | redis2.8 | redis3.2 | redis4.0 | redis5.0 | redis6.x | redis6.2 | redis7 | valkey7  Constraints:   Must be 1 to 255 alphanumeric characters   First character must be a letter   Cannot end with a hyphen or contain two consecutive hyphens
        public let cacheParameterGroupFamily: String?
        /// If true, specifies that only the default version of the specified engine or engine and major version combination is to be returned.
        public let defaultOnly: Bool?
        /// The cache engine to return. Valid values: memcached | redis
        public let engine: String?
        /// The cache engine version to return. Example: 1.4.14
        public let engineVersion: String?
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100.
        public let maxRecords: Int?

        @inlinable
        public init(cacheParameterGroupFamily: String? = nil, defaultOnly: Bool? = nil, engine: String? = nil, engineVersion: String? = nil, marker: String? = nil, maxRecords: Int? = nil) {
            self.cacheParameterGroupFamily = cacheParameterGroupFamily
            self.defaultOnly = defaultOnly
            self.engine = engine
            self.engineVersion = engineVersion
            self.marker = marker
            self.maxRecords = maxRecords
        }

        private enum CodingKeys: String, CodingKey {
            case cacheParameterGroupFamily = "CacheParameterGroupFamily"
            case defaultOnly = "DefaultOnly"
            case engine = "Engine"
            case engineVersion = "EngineVersion"
            case marker = "Marker"
            case maxRecords = "MaxRecords"
        }
    }

    public struct DescribeCacheParameterGroupsMessage: AWSEncodableShape {
        /// The name of a specific cache parameter group to return details for.
        public let cacheParameterGroupName: String?
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100.
        public let maxRecords: Int?

        @inlinable
        public init(cacheParameterGroupName: String? = nil, marker: String? = nil, maxRecords: Int? = nil) {
            self.cacheParameterGroupName = cacheParameterGroupName
            self.marker = marker
            self.maxRecords = maxRecords
        }

        private enum CodingKeys: String, CodingKey {
            case cacheParameterGroupName = "CacheParameterGroupName"
            case marker = "Marker"
            case maxRecords = "MaxRecords"
        }
    }

    public struct DescribeCacheParametersMessage: AWSEncodableShape {
        /// The name of a specific cache parameter group to return details for.
        public let cacheParameterGroupName: String?
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100.
        public let maxRecords: Int?
        /// The parameter types to return. Valid values: user | system | engine-default
        public let source: String?

        @inlinable
        public init(cacheParameterGroupName: String? = nil, marker: String? = nil, maxRecords: Int? = nil, source: String? = nil) {
            self.cacheParameterGroupName = cacheParameterGroupName
            self.marker = marker
            self.maxRecords = maxRecords
            self.source = source
        }

        private enum CodingKeys: String, CodingKey {
            case cacheParameterGroupName = "CacheParameterGroupName"
            case marker = "Marker"
            case maxRecords = "MaxRecords"
            case source = "Source"
        }
    }

    public struct DescribeCacheSecurityGroupsMessage: AWSEncodableShape {
        /// The name of the cache security group to return details for.
        public let cacheSecurityGroupName: String?
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100.
        public let maxRecords: Int?

        @inlinable
        public init(cacheSecurityGroupName: String? = nil, marker: String? = nil, maxRecords: Int? = nil) {
            self.cacheSecurityGroupName = cacheSecurityGroupName
            self.marker = marker
            self.maxRecords = maxRecords
        }

        private enum CodingKeys: String, CodingKey {
            case cacheSecurityGroupName = "CacheSecurityGroupName"
            case marker = "Marker"
            case maxRecords = "MaxRecords"
        }
    }

    public struct DescribeCacheSubnetGroupsMessage: AWSEncodableShape {
        /// The name of the cache subnet group to return details for.
        public let cacheSubnetGroupName: String?
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100.
        public let maxRecords: Int?

        @inlinable
        public init(cacheSubnetGroupName: String? = nil, marker: String? = nil, maxRecords: Int? = nil) {
            self.cacheSubnetGroupName = cacheSubnetGroupName
            self.marker = marker
            self.maxRecords = maxRecords
        }

        private enum CodingKeys: String, CodingKey {
            case cacheSubnetGroupName = "CacheSubnetGroupName"
            case marker = "Marker"
            case maxRecords = "MaxRecords"
        }
    }

    public struct DescribeEngineDefaultParametersMessage: AWSEncodableShape {
        /// The name of the cache parameter group family. Valid values are: memcached1.4 | memcached1.5 | memcached1.6 | redis2.6 | redis2.8 | redis3.2 | redis4.0 | redis5.0 | redis6.x | redis6.2 | redis7
        public let cacheParameterGroupFamily: String?
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100.
        public let maxRecords: Int?

        @inlinable
        public init(cacheParameterGroupFamily: String? = nil, marker: String? = nil, maxRecords: Int? = nil) {
            self.cacheParameterGroupFamily = cacheParameterGroupFamily
            self.marker = marker
            self.maxRecords = maxRecords
        }

        private enum CodingKeys: String, CodingKey {
            case cacheParameterGroupFamily = "CacheParameterGroupFamily"
            case marker = "Marker"
            case maxRecords = "MaxRecords"
        }
    }

    public struct DescribeEngineDefaultParametersResult: AWSDecodableShape {
        public let engineDefaults: EngineDefaults?

        @inlinable
        public init(engineDefaults: EngineDefaults? = nil) {
            self.engineDefaults = engineDefaults
        }

        private enum CodingKeys: String, CodingKey {
            case engineDefaults = "EngineDefaults"
        }
    }

    public struct DescribeEventsMessage: AWSEncodableShape {
        /// The number of minutes worth of events to retrieve.
        public let duration: Int?
        /// The end of the time interval for which to retrieve events, specified in ISO 8601 format.  Example: 2017-03-30T07:03:49.555Z
        public let endTime: Date?
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100.
        public let maxRecords: Int?
        /// The identifier of the event source for which events are returned. If not specified, all sources are included in the response.
        public let sourceIdentifier: String?
        /// The event source to retrieve events for. If no value is specified, all events are returned.
        public let sourceType: SourceType?
        /// The beginning of the time interval to retrieve events for, specified in ISO 8601 format.  Example: 2017-03-30T07:03:49.555Z
        public let startTime: Date?

        @inlinable
        public init(duration: Int? = nil, endTime: Date? = nil, marker: String? = nil, maxRecords: Int? = nil, sourceIdentifier: String? = nil, sourceType: SourceType? = nil, startTime: Date? = nil) {
            self.duration = duration
            self.endTime = endTime
            self.marker = marker
            self.maxRecords = maxRecords
            self.sourceIdentifier = sourceIdentifier
            self.sourceType = sourceType
            self.startTime = startTime
        }

        private enum CodingKeys: String, CodingKey {
            case duration = "Duration"
            case endTime = "EndTime"
            case marker = "Marker"
            case maxRecords = "MaxRecords"
            case sourceIdentifier = "SourceIdentifier"
            case sourceType = "SourceType"
            case startTime = "StartTime"
        }
    }

    public struct DescribeGlobalReplicationGroupsMessage: AWSEncodableShape {
        /// The name of the Global datastore
        public let globalReplicationGroupId: String?
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
        public let maxRecords: Int?
        /// Returns the list of members that comprise the Global datastore.
        public let showMemberInfo: Bool?

        @inlinable
        public init(globalReplicationGroupId: String? = nil, marker: String? = nil, maxRecords: Int? = nil, showMemberInfo: Bool? = nil) {
            self.globalReplicationGroupId = globalReplicationGroupId
            self.marker = marker
            self.maxRecords = maxRecords
            self.showMemberInfo = showMemberInfo
        }

        private enum CodingKeys: String, CodingKey {
            case globalReplicationGroupId = "GlobalReplicationGroupId"
            case marker = "Marker"
            case maxRecords = "MaxRecords"
            case showMemberInfo = "ShowMemberInfo"
        }
    }

    public struct DescribeGlobalReplicationGroupsResult: AWSDecodableShape {
        public struct _GlobalReplicationGroupsEncoding: ArrayCoderProperties { public static let member = "GlobalReplicationGroup" }

        /// Indicates the slot configuration and global identifier for each slice group.
        @OptionalCustomCoding<ArrayCoder<_GlobalReplicationGroupsEncoding, GlobalReplicationGroup>>
        public var globalReplicationGroups: [GlobalReplicationGroup]?
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords. >
        public let marker: String?

        @inlinable
        public init(globalReplicationGroups: [GlobalReplicationGroup]? = nil, marker: String? = nil) {
            self.globalReplicationGroups = globalReplicationGroups
            self.marker = marker
        }

        private enum CodingKeys: String, CodingKey {
            case globalReplicationGroups = "GlobalReplicationGroups"
            case marker = "Marker"
        }
    }

    public struct DescribeReplicationGroupsMessage: AWSEncodableShape {
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100.
        public let maxRecords: Int?
        /// The identifier for the replication group to be described. This parameter is not case sensitive. If you do not specify this parameter, information about all replication groups is returned.
        public let replicationGroupId: String?

        @inlinable
        public init(marker: String? = nil, maxRecords: Int? = nil, replicationGroupId: String? = nil) {
            self.marker = marker
            self.maxRecords = maxRecords
            self.replicationGroupId = replicationGroupId
        }

        private enum CodingKeys: String, CodingKey {
            case marker = "Marker"
            case maxRecords = "MaxRecords"
            case replicationGroupId = "ReplicationGroupId"
        }
    }

    public struct DescribeReservedCacheNodesMessage: AWSEncodableShape {
        /// The cache node type filter value. Use this parameter to show only those reservations matching the specified cache node type. The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.   General purpose:   Current generation:   M7g node types: 					cache.m7g.large, 					cache.m7g.xlarge, 					cache.m7g.2xlarge, 					cache.m7g.4xlarge, 					cache.m7g.8xlarge, 					cache.m7g.12xlarge, 					cache.m7g.16xlarge   For region availability, see Supported Node Types    M6g node types (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
        ///
        /// 					 	cache.m6g.large,
        /// 							cache.m6g.xlarge,
        /// 							cache.m6g.2xlarge,
        /// 							cache.m6g.4xlarge,
        /// 							cache.m6g.8xlarge,
        /// 							cache.m6g.12xlarge,
        /// 							cache.m6g.16xlarge   M5 node types: cache.m5.large, 						cache.m5.xlarge, 						cache.m5.2xlarge, 						cache.m5.4xlarge, 						cache.m5.12xlarge, 						cache.m5.24xlarge   M4 node types: cache.m4.large, 						cache.m4.xlarge, 						cache.m4.2xlarge, 						cache.m4.4xlarge, 						cache.m4.10xlarge   T4g node types (available only for Redis OSS engine version 5.0.6 onward and Memcached engine version 1.5.16 onward):
        /// 					        cache.t4g.micro,
        /// 					        cache.t4g.small,
        /// 					        cache.t4g.medium   T3 node types: cache.t3.micro,  						cache.t3.small, 						cache.t3.medium   T2 node types: cache.t2.micro,  						cache.t2.small, 						cache.t2.medium    Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  T1 node types: cache.t1.micro   M1 node types: cache.m1.small,
        /// 						   cache.m1.medium,
        /// 						   cache.m1.large,
        /// 						   cache.m1.xlarge   M3 node types: cache.m3.medium, 						cache.m3.large,  						cache.m3.xlarge, 						cache.m3.2xlarge      Compute optimized:   Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  C1 node types: cache.c1.xlarge      Memory optimized:   Current generation:   R7g node types:
        /// 							cache.r7g.large,
        /// 							cache.r7g.xlarge,
        /// 							cache.r7g.2xlarge,
        /// 							cache.r7g.4xlarge,
        /// 							cache.r7g.8xlarge,
        /// 							cache.r7g.12xlarge,
        /// 							cache.r7g.16xlarge   For region availability, see Supported Node Types    R6g node types (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
        /// 							cache.r6g.large,
        /// 							cache.r6g.xlarge,
        /// 							cache.r6g.2xlarge,
        /// 							cache.r6g.4xlarge,
        /// 							cache.r6g.8xlarge,
        /// 							cache.r6g.12xlarge,
        /// 							cache.r6g.16xlarge   R5 node types: cache.r5.large, 					   cache.r5.xlarge, 					   cache.r5.2xlarge, 					   cache.r5.4xlarge, 					   cache.r5.12xlarge, 					   cache.r5.24xlarge   R4 node types: cache.r4.large, 					   cache.r4.xlarge, 					   cache.r4.2xlarge, 					   cache.r4.4xlarge, 					   cache.r4.8xlarge, 					   cache.r4.16xlarge    Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  M2 node types: cache.m2.xlarge,  						cache.m2.2xlarge, 						cache.m2.4xlarge   R3 node types: cache.r3.large,  						cache.r3.xlarge, 						cache.r3.2xlarge,   						cache.r3.4xlarge, 						cache.r3.8xlarge       Additional node type info    All current generation instance types are created in Amazon VPC by default.   Valkey or Redis OSS append-only files (AOF) are not supported for T1 or T2 instances.   Valkey or Redis OSS Multi-AZ with automatic failover is not supported on T1 instances.   The configuration variables appendonly and appendfsync are not supported on Valkey, or on Redis OSS version 2.8.22 and later.
        public let cacheNodeType: String?
        /// The duration filter value, specified in years or seconds. Use this parameter to show only reservations for this duration. Valid Values: 1 | 3 | 31536000 | 94608000
        public let duration: String?
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100.
        public let maxRecords: Int?
        /// The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type. Valid values: "Light Utilization"|"Medium Utilization"|"Heavy Utilization"|"All Upfront"|"Partial Upfront"| "No Upfront"
        public let offeringType: String?
        /// The product description filter value. Use this parameter to show only those reservations matching the specified product description.
        public let productDescription: String?
        /// The reserved cache node identifier filter value. Use this parameter to show only the reservation that matches the specified reservation ID.
        public let reservedCacheNodeId: String?
        /// The offering identifier filter value. Use this parameter to show only purchased reservations matching the specified offering identifier.
        public let reservedCacheNodesOfferingId: String?

        @inlinable
        public init(cacheNodeType: String? = nil, duration: String? = nil, marker: String? = nil, maxRecords: Int? = nil, offeringType: String? = nil, productDescription: String? = nil, reservedCacheNodeId: String? = nil, reservedCacheNodesOfferingId: String? = nil) {
            self.cacheNodeType = cacheNodeType
            self.duration = duration
            self.marker = marker
            self.maxRecords = maxRecords
            self.offeringType = offeringType
            self.productDescription = productDescription
            self.reservedCacheNodeId = reservedCacheNodeId
            self.reservedCacheNodesOfferingId = reservedCacheNodesOfferingId
        }

        private enum CodingKeys: String, CodingKey {
            case cacheNodeType = "CacheNodeType"
            case duration = "Duration"
            case marker = "Marker"
            case maxRecords = "MaxRecords"
            case offeringType = "OfferingType"
            case productDescription = "ProductDescription"
            case reservedCacheNodeId = "ReservedCacheNodeId"
            case reservedCacheNodesOfferingId = "ReservedCacheNodesOfferingId"
        }
    }

    public struct DescribeReservedCacheNodesOfferingsMessage: AWSEncodableShape {
        /// The cache node type filter value. Use this parameter to show only the available offerings matching the specified cache node type. The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.   General purpose:   Current generation:   M7g node types: 					cache.m7g.large, 					cache.m7g.xlarge, 					cache.m7g.2xlarge, 					cache.m7g.4xlarge, 					cache.m7g.8xlarge, 					cache.m7g.12xlarge, 					cache.m7g.16xlarge   For region availability, see Supported Node Types    M6g node types (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
        ///
        /// 					 	cache.m6g.large,
        /// 							cache.m6g.xlarge,
        /// 							cache.m6g.2xlarge,
        /// 							cache.m6g.4xlarge,
        /// 							cache.m6g.8xlarge,
        /// 							cache.m6g.12xlarge,
        /// 							cache.m6g.16xlarge   M5 node types: cache.m5.large, 						cache.m5.xlarge, 						cache.m5.2xlarge, 						cache.m5.4xlarge, 						cache.m5.12xlarge, 						cache.m5.24xlarge   M4 node types: cache.m4.large, 						cache.m4.xlarge, 						cache.m4.2xlarge, 						cache.m4.4xlarge, 						cache.m4.10xlarge   T4g node types (available only for Redis OSS engine version 5.0.6 onward and Memcached engine version 1.5.16 onward):
        /// 					        cache.t4g.micro,
        /// 					        cache.t4g.small,
        /// 					        cache.t4g.medium   T3 node types: cache.t3.micro,  						cache.t3.small, 						cache.t3.medium   T2 node types: cache.t2.micro,  						cache.t2.small, 						cache.t2.medium    Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  T1 node types: cache.t1.micro   M1 node types: cache.m1.small,
        /// 						   cache.m1.medium,
        /// 						   cache.m1.large,
        /// 						   cache.m1.xlarge   M3 node types: cache.m3.medium, 						cache.m3.large,  						cache.m3.xlarge, 						cache.m3.2xlarge      Compute optimized:   Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  C1 node types: cache.c1.xlarge      Memory optimized:   Current generation:   R7g node types:
        /// 							cache.r7g.large,
        /// 							cache.r7g.xlarge,
        /// 							cache.r7g.2xlarge,
        /// 							cache.r7g.4xlarge,
        /// 							cache.r7g.8xlarge,
        /// 							cache.r7g.12xlarge,
        /// 							cache.r7g.16xlarge   For region availability, see Supported Node Types    R6g node types (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
        /// 							cache.r6g.large,
        /// 							cache.r6g.xlarge,
        /// 							cache.r6g.2xlarge,
        /// 							cache.r6g.4xlarge,
        /// 							cache.r6g.8xlarge,
        /// 							cache.r6g.12xlarge,
        /// 							cache.r6g.16xlarge   R5 node types: cache.r5.large, 					   cache.r5.xlarge, 					   cache.r5.2xlarge, 					   cache.r5.4xlarge, 					   cache.r5.12xlarge, 					   cache.r5.24xlarge   R4 node types: cache.r4.large, 					   cache.r4.xlarge, 					   cache.r4.2xlarge, 					   cache.r4.4xlarge, 					   cache.r4.8xlarge, 					   cache.r4.16xlarge    Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  M2 node types: cache.m2.xlarge,  						cache.m2.2xlarge, 						cache.m2.4xlarge   R3 node types: cache.r3.large,  						cache.r3.xlarge, 						cache.r3.2xlarge,   						cache.r3.4xlarge, 						cache.r3.8xlarge       Additional node type info    All current generation instance types are created in Amazon VPC by default.   Valkey or Redis OSS append-only files (AOF) are not supported for T1 or T2 instances.   Valkey or Redis OSS Multi-AZ with automatic failover is not supported on T1 instances.   The configuration variables appendonly and appendfsync are not supported on Valkey, or on Redis OSS version 2.8.22 and later.
        public let cacheNodeType: String?
        /// Duration filter value, specified in years or seconds. Use this parameter to show only reservations for a given duration. Valid Values: 1 | 3 | 31536000 | 94608000
        public let duration: String?
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100.
        public let maxRecords: Int?
        /// The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type. Valid Values: "Light Utilization"|"Medium Utilization"|"Heavy Utilization" |"All Upfront"|"Partial Upfront"| "No Upfront"
        public let offeringType: String?
        /// The product description filter value. Use this parameter to show only the available offerings matching the specified product description.
        public let productDescription: String?
        /// The offering identifier filter value. Use this parameter to show only the available offering that matches the specified reservation identifier. Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
        public let reservedCacheNodesOfferingId: String?

        @inlinable
        public init(cacheNodeType: String? = nil, duration: String? = nil, marker: String? = nil, maxRecords: Int? = nil, offeringType: String? = nil, productDescription: String? = nil, reservedCacheNodesOfferingId: String? = nil) {
            self.cacheNodeType = cacheNodeType
            self.duration = duration
            self.marker = marker
            self.maxRecords = maxRecords
            self.offeringType = offeringType
            self.productDescription = productDescription
            self.reservedCacheNodesOfferingId = reservedCacheNodesOfferingId
        }

        private enum CodingKeys: String, CodingKey {
            case cacheNodeType = "CacheNodeType"
            case duration = "Duration"
            case marker = "Marker"
            case maxRecords = "MaxRecords"
            case offeringType = "OfferingType"
            case productDescription = "ProductDescription"
            case reservedCacheNodesOfferingId = "ReservedCacheNodesOfferingId"
        }
    }

    public struct DescribeServerlessCacheSnapshotsRequest: AWSEncodableShape {
        /// The maximum number of records to include in the response. If more records exist than  the specified max-results value, a market is included in the response so that remaining results  can be retrieved. Available for Valkey, Redis OSS and Serverless Memcached only.The default is 50. The Validation Constraints are a maximum of 50.
        public let maxResults: Int?
        /// An optional marker returned from a prior request to support pagination of results from this operation.  If this parameter is specified, the response includes only records beyond the marker,  up to the value specified by max-results. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let nextToken: String?
        /// The identifier of serverless cache. If this parameter is specified,  only snapshots associated with that specific serverless cache are described. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let serverlessCacheName: String?
        /// The identifier of the serverless cache’s snapshot. If this parameter is specified, only this snapshot is described. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let serverlessCacheSnapshotName: String?
        /// The type of snapshot that is being described. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let snapshotType: String?

        @inlinable
        public init(maxResults: Int? = nil, nextToken: String? = nil, serverlessCacheName: String? = nil, serverlessCacheSnapshotName: String? = nil, snapshotType: String? = nil) {
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.serverlessCacheName = serverlessCacheName
            self.serverlessCacheSnapshotName = serverlessCacheSnapshotName
            self.snapshotType = snapshotType
        }

        private enum CodingKeys: String, CodingKey {
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
            case serverlessCacheName = "ServerlessCacheName"
            case serverlessCacheSnapshotName = "ServerlessCacheSnapshotName"
            case snapshotType = "SnapshotType"
        }
    }

    public struct DescribeServerlessCacheSnapshotsResponse: AWSDecodableShape {
        public struct _ServerlessCacheSnapshotsEncoding: ArrayCoderProperties { public static let member = "ServerlessCacheSnapshot" }

        /// An optional marker returned from a prior request to support pagination of results from this operation.  If this parameter is specified, the response includes only records beyond the marker,  up to the value specified by max-results. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let nextToken: String?
        /// The serverless caches snapshots associated with a given description request. Available for Valkey, Redis OSS and Serverless Memcached only.
        @OptionalCustomCoding<ArrayCoder<_ServerlessCacheSnapshotsEncoding, ServerlessCacheSnapshot>>
        public var serverlessCacheSnapshots: [ServerlessCacheSnapshot]?

        @inlinable
        public init(nextToken: String? = nil, serverlessCacheSnapshots: [ServerlessCacheSnapshot]? = nil) {
            self.nextToken = nextToken
            self.serverlessCacheSnapshots = serverlessCacheSnapshots
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case serverlessCacheSnapshots = "ServerlessCacheSnapshots"
        }
    }

    public struct DescribeServerlessCachesRequest: AWSEncodableShape {
        /// The maximum number of records in the response. If more records exist than the specified max-records value,  the next token is included in the response so that remaining results can be retrieved.  The default is 50.
        public let maxResults: Int?
        /// An optional marker returned from a prior request to support pagination of results from this operation.  If this parameter is specified, the response includes only records beyond the marker,  up to the value specified by MaxResults.
        public let nextToken: String?
        /// The identifier for the serverless cache. If this parameter is specified,  only information about that specific serverless cache is returned. Default: NULL
        public let serverlessCacheName: String?

        @inlinable
        public init(maxResults: Int? = nil, nextToken: String? = nil, serverlessCacheName: String? = nil) {
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.serverlessCacheName = serverlessCacheName
        }

        private enum CodingKeys: String, CodingKey {
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
            case serverlessCacheName = "ServerlessCacheName"
        }
    }

    public struct DescribeServerlessCachesResponse: AWSDecodableShape {
        /// An optional marker returned from a prior request to support pagination of results from this operation.  If this parameter is specified, the response includes only records beyond the marker,  up to the value specified by MaxResults.
        public let nextToken: String?
        /// The serverless caches associated with a given description request.
        @OptionalCustomCoding<StandardArrayCoder<ServerlessCache>>
        public var serverlessCaches: [ServerlessCache]?

        @inlinable
        public init(nextToken: String? = nil, serverlessCaches: [ServerlessCache]? = nil) {
            self.nextToken = nextToken
            self.serverlessCaches = serverlessCaches
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case serverlessCaches = "ServerlessCaches"
        }
    }

    public struct DescribeServiceUpdatesMessage: AWSEncodableShape {
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// The maximum number of records to include in the response
        public let maxRecords: Int?
        /// The unique ID of the service update
        public let serviceUpdateName: String?
        /// The status of the service update
        @OptionalCustomCoding<StandardArrayCoder<ServiceUpdateStatus>>
        public var serviceUpdateStatus: [ServiceUpdateStatus]?

        @inlinable
        public init(marker: String? = nil, maxRecords: Int? = nil, serviceUpdateName: String? = nil, serviceUpdateStatus: [ServiceUpdateStatus]? = nil) {
            self.marker = marker
            self.maxRecords = maxRecords
            self.serviceUpdateName = serviceUpdateName
            self.serviceUpdateStatus = serviceUpdateStatus
        }

        public func validate(name: String) throws {
            try self.validate(self.serviceUpdateStatus, name: "serviceUpdateStatus", parent: name, max: 3)
        }

        private enum CodingKeys: String, CodingKey {
            case marker = "Marker"
            case maxRecords = "MaxRecords"
            case serviceUpdateName = "ServiceUpdateName"
            case serviceUpdateStatus = "ServiceUpdateStatus"
        }
    }

    public struct DescribeSnapshotsListMessage: AWSDecodableShape {
        public struct _SnapshotsEncoding: ArrayCoderProperties { public static let member = "Snapshot" }

        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// A list of snapshots. Each item in the list contains detailed information about one snapshot.
        @OptionalCustomCoding<ArrayCoder<_SnapshotsEncoding, Snapshot>>
        public var snapshots: [Snapshot]?

        @inlinable
        public init(marker: String? = nil, snapshots: [Snapshot]? = nil) {
            self.marker = marker
            self.snapshots = snapshots
        }

        private enum CodingKeys: String, CodingKey {
            case marker = "Marker"
            case snapshots = "Snapshots"
        }
    }

    public struct DescribeSnapshotsMessage: AWSEncodableShape {
        /// A user-supplied cluster identifier. If this parameter is specified, only snapshots associated with that specific cluster are described.
        public let cacheClusterId: String?
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 50 Constraints: minimum 20; maximum 50.
        public let maxRecords: Int?
        /// A user-supplied replication group identifier. If this parameter is specified, only snapshots associated with that specific replication group are described.
        public let replicationGroupId: String?
        /// A Boolean value which if true, the node group (shard) configuration is included in the snapshot description.
        public let showNodeGroupConfig: Bool?
        /// A user-supplied name of the snapshot. If this parameter is specified, only this snapshot are described.
        public let snapshotName: String?
        /// If set to system, the output shows snapshots that were automatically created by ElastiCache. If set to user the output shows snapshots that were manually created. If omitted, the output shows both automatically and manually created snapshots.
        public let snapshotSource: String?

        @inlinable
        public init(cacheClusterId: String? = nil, marker: String? = nil, maxRecords: Int? = nil, replicationGroupId: String? = nil, showNodeGroupConfig: Bool? = nil, snapshotName: String? = nil, snapshotSource: String? = nil) {
            self.cacheClusterId = cacheClusterId
            self.marker = marker
            self.maxRecords = maxRecords
            self.replicationGroupId = replicationGroupId
            self.showNodeGroupConfig = showNodeGroupConfig
            self.snapshotName = snapshotName
            self.snapshotSource = snapshotSource
        }

        private enum CodingKeys: String, CodingKey {
            case cacheClusterId = "CacheClusterId"
            case marker = "Marker"
            case maxRecords = "MaxRecords"
            case replicationGroupId = "ReplicationGroupId"
            case showNodeGroupConfig = "ShowNodeGroupConfig"
            case snapshotName = "SnapshotName"
            case snapshotSource = "SnapshotSource"
        }
    }

    public struct DescribeUpdateActionsMessage: AWSEncodableShape {
        /// The cache cluster IDs
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var cacheClusterIds: [String]?
        /// The Elasticache engine to which the update applies. Either Valkey, Redis OSS or Memcached.
        public let engine: String?
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// The maximum number of records to include in the response
        public let maxRecords: Int?
        /// The replication group IDs
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var replicationGroupIds: [String]?
        /// The unique ID of the service update
        public let serviceUpdateName: String?
        /// The status of the service update
        @OptionalCustomCoding<StandardArrayCoder<ServiceUpdateStatus>>
        public var serviceUpdateStatus: [ServiceUpdateStatus]?
        /// The range of time specified to search for service updates that are in available status
        public let serviceUpdateTimeRange: TimeRangeFilter?
        /// Dictates whether to include node level update status in the response
        public let showNodeLevelUpdateStatus: Bool?
        /// The status of the update action.
        @OptionalCustomCoding<StandardArrayCoder<UpdateActionStatus>>
        public var updateActionStatus: [UpdateActionStatus]?

        @inlinable
        public init(cacheClusterIds: [String]? = nil, engine: String? = nil, marker: String? = nil, maxRecords: Int? = nil, replicationGroupIds: [String]? = nil, serviceUpdateName: String? = nil, serviceUpdateStatus: [ServiceUpdateStatus]? = nil, serviceUpdateTimeRange: TimeRangeFilter? = nil, showNodeLevelUpdateStatus: Bool? = nil, updateActionStatus: [UpdateActionStatus]? = nil) {
            self.cacheClusterIds = cacheClusterIds
            self.engine = engine
            self.marker = marker
            self.maxRecords = maxRecords
            self.replicationGroupIds = replicationGroupIds
            self.serviceUpdateName = serviceUpdateName
            self.serviceUpdateStatus = serviceUpdateStatus
            self.serviceUpdateTimeRange = serviceUpdateTimeRange
            self.showNodeLevelUpdateStatus = showNodeLevelUpdateStatus
            self.updateActionStatus = updateActionStatus
        }

        public func validate(name: String) throws {
            try self.validate(self.cacheClusterIds, name: "cacheClusterIds", parent: name, max: 20)
            try self.validate(self.replicationGroupIds, name: "replicationGroupIds", parent: name, max: 20)
            try self.validate(self.serviceUpdateStatus, name: "serviceUpdateStatus", parent: name, max: 3)
            try self.validate(self.updateActionStatus, name: "updateActionStatus", parent: name, max: 9)
        }

        private enum CodingKeys: String, CodingKey {
            case cacheClusterIds = "CacheClusterIds"
            case engine = "Engine"
            case marker = "Marker"
            case maxRecords = "MaxRecords"
            case replicationGroupIds = "ReplicationGroupIds"
            case serviceUpdateName = "ServiceUpdateName"
            case serviceUpdateStatus = "ServiceUpdateStatus"
            case serviceUpdateTimeRange = "ServiceUpdateTimeRange"
            case showNodeLevelUpdateStatus = "ShowNodeLevelUpdateStatus"
            case updateActionStatus = "UpdateActionStatus"
        }
    }

    public struct DescribeUserGroupsMessage: AWSEncodableShape {
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords. >
        public let marker: String?
        /// The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
        public let maxRecords: Int?
        /// The ID of the user group.
        public let userGroupId: String?

        @inlinable
        public init(marker: String? = nil, maxRecords: Int? = nil, userGroupId: String? = nil) {
            self.marker = marker
            self.maxRecords = maxRecords
            self.userGroupId = userGroupId
        }

        private enum CodingKeys: String, CodingKey {
            case marker = "Marker"
            case maxRecords = "MaxRecords"
            case userGroupId = "UserGroupId"
        }
    }

    public struct DescribeUserGroupsResult: AWSDecodableShape {
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.>
        public let marker: String?
        /// Returns a list of user groups.
        @OptionalCustomCoding<StandardArrayCoder<UserGroup>>
        public var userGroups: [UserGroup]?

        @inlinable
        public init(marker: String? = nil, userGroups: [UserGroup]? = nil) {
            self.marker = marker
            self.userGroups = userGroups
        }

        private enum CodingKeys: String, CodingKey {
            case marker = "Marker"
            case userGroups = "UserGroups"
        }
    }

    public struct DescribeUsersMessage: AWSEncodableShape {
        /// The engine.
        public let engine: String?
        /// Filter to determine the list of User IDs to return.
        @OptionalCustomCoding<StandardArrayCoder<Filter>>
        public var filters: [Filter]?
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords. >
        public let marker: String?
        /// The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
        public let maxRecords: Int?
        /// The ID of the user.
        public let userId: String?

        @inlinable
        public init(engine: String? = nil, filters: [Filter]? = nil, marker: String? = nil, maxRecords: Int? = nil, userId: String? = nil) {
            self.engine = engine
            self.filters = filters
            self.marker = marker
            self.maxRecords = maxRecords
            self.userId = userId
        }

        public func validate(name: String) throws {
            try self.validate(self.engine, name: "engine", parent: name, pattern: "^[a-zA-Z]*$")
            try self.filters?.forEach {
                try $0.validate(name: "\(name).filters[]")
            }
            try self.validate(self.userId, name: "userId", parent: name, min: 1)
            try self.validate(self.userId, name: "userId", parent: name, pattern: "^[a-zA-Z][a-zA-Z0-9\\-]*$")
        }

        private enum CodingKeys: String, CodingKey {
            case engine = "Engine"
            case filters = "Filters"
            case marker = "Marker"
            case maxRecords = "MaxRecords"
            case userId = "UserId"
        }
    }

    public struct DescribeUsersResult: AWSDecodableShape {
        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords. >
        public let marker: String?
        /// A list of users.
        @OptionalCustomCoding<StandardArrayCoder<User>>
        public var users: [User]?

        @inlinable
        public init(marker: String? = nil, users: [User]? = nil) {
            self.marker = marker
            self.users = users
        }

        private enum CodingKeys: String, CodingKey {
            case marker = "Marker"
            case users = "Users"
        }
    }

    public struct DestinationDetails: AWSEncodableShape & AWSDecodableShape {
        /// The configuration details of the CloudWatch Logs destination.
        public let cloudWatchLogsDetails: CloudWatchLogsDestinationDetails?
        /// The configuration details of the Kinesis Data Firehose destination.
        public let kinesisFirehoseDetails: KinesisFirehoseDestinationDetails?

        @inlinable
        public init(cloudWatchLogsDetails: CloudWatchLogsDestinationDetails? = nil, kinesisFirehoseDetails: KinesisFirehoseDestinationDetails? = nil) {
            self.cloudWatchLogsDetails = cloudWatchLogsDetails
            self.kinesisFirehoseDetails = kinesisFirehoseDetails
        }

        private enum CodingKeys: String, CodingKey {
            case cloudWatchLogsDetails = "CloudWatchLogsDetails"
            case kinesisFirehoseDetails = "KinesisFirehoseDetails"
        }
    }

    public struct DisassociateGlobalReplicationGroupMessage: AWSEncodableShape {
        /// The name of the Global datastore
        public let globalReplicationGroupId: String?
        /// The name of the secondary cluster you wish to remove from the Global datastore
        public let replicationGroupId: String?
        /// The Amazon region of secondary cluster you wish to remove from the Global datastore
        public let replicationGroupRegion: String?

        @inlinable
        public init(globalReplicationGroupId: String? = nil, replicationGroupId: String? = nil, replicationGroupRegion: String? = nil) {
            self.globalReplicationGroupId = globalReplicationGroupId
            self.replicationGroupId = replicationGroupId
            self.replicationGroupRegion = replicationGroupRegion
        }

        private enum CodingKeys: String, CodingKey {
            case globalReplicationGroupId = "GlobalReplicationGroupId"
            case replicationGroupId = "ReplicationGroupId"
            case replicationGroupRegion = "ReplicationGroupRegion"
        }
    }

    public struct DisassociateGlobalReplicationGroupResult: AWSDecodableShape {
        public let globalReplicationGroup: GlobalReplicationGroup?

        @inlinable
        public init(globalReplicationGroup: GlobalReplicationGroup? = nil) {
            self.globalReplicationGroup = globalReplicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case globalReplicationGroup = "GlobalReplicationGroup"
        }
    }

    public struct EC2SecurityGroup: AWSDecodableShape {
        /// The name of the Amazon EC2 security group.
        public let ec2SecurityGroupName: String?
        /// The Amazon account ID of the Amazon EC2 security group owner.
        public let ec2SecurityGroupOwnerId: String?
        /// The status of the Amazon EC2 security group.
        public let status: String?

        @inlinable
        public init(ec2SecurityGroupName: String? = nil, ec2SecurityGroupOwnerId: String? = nil, status: String? = nil) {
            self.ec2SecurityGroupName = ec2SecurityGroupName
            self.ec2SecurityGroupOwnerId = ec2SecurityGroupOwnerId
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case ec2SecurityGroupName = "EC2SecurityGroupName"
            case ec2SecurityGroupOwnerId = "EC2SecurityGroupOwnerId"
            case status = "Status"
        }
    }

    public struct ECPUPerSecond: AWSEncodableShape & AWSDecodableShape {
        /// The configuration for the maximum number of ECPUs the cache can consume per second.
        public let maximum: Int?
        /// The configuration for the minimum number of ECPUs the cache should be able consume per second.
        public let minimum: Int?

        @inlinable
        public init(maximum: Int? = nil, minimum: Int? = nil) {
            self.maximum = maximum
            self.minimum = minimum
        }

        private enum CodingKeys: String, CodingKey {
            case maximum = "Maximum"
            case minimum = "Minimum"
        }
    }

    public struct Endpoint: AWSDecodableShape {
        /// The DNS hostname of the cache node.
        public let address: String?
        /// The port number that the cache engine is listening on.
        public let port: Int?

        @inlinable
        public init(address: String? = nil, port: Int? = nil) {
            self.address = address
            self.port = port
        }

        private enum CodingKeys: String, CodingKey {
            case address = "Address"
            case port = "Port"
        }
    }

    public struct EngineDefaults: AWSDecodableShape {
        public struct _CacheNodeTypeSpecificParametersEncoding: ArrayCoderProperties { public static let member = "CacheNodeTypeSpecificParameter" }
        public struct _ParametersEncoding: ArrayCoderProperties { public static let member = "Parameter" }

        /// A list of parameters specific to a particular cache node type. Each element in the list contains detailed information about one parameter.
        @OptionalCustomCoding<ArrayCoder<_CacheNodeTypeSpecificParametersEncoding, CacheNodeTypeSpecificParameter>>
        public var cacheNodeTypeSpecificParameters: [CacheNodeTypeSpecificParameter]?
        /// Specifies the name of the cache parameter group family to which the engine default parameters apply. Valid values are: memcached1.4 | memcached1.5 | memcached1.6 | redis2.6 | redis2.8 | redis3.2 | redis4.0 | redis5.0 | redis6.0 | redis6.x | redis7
        public let cacheParameterGroupFamily: String?
        /// Provides an identifier to allow retrieval of paginated results.
        public let marker: String?
        /// Contains a list of engine default parameters.
        @OptionalCustomCoding<ArrayCoder<_ParametersEncoding, Parameter>>
        public var parameters: [Parameter]?

        @inlinable
        public init(cacheNodeTypeSpecificParameters: [CacheNodeTypeSpecificParameter]? = nil, cacheParameterGroupFamily: String? = nil, marker: String? = nil, parameters: [Parameter]? = nil) {
            self.cacheNodeTypeSpecificParameters = cacheNodeTypeSpecificParameters
            self.cacheParameterGroupFamily = cacheParameterGroupFamily
            self.marker = marker
            self.parameters = parameters
        }

        private enum CodingKeys: String, CodingKey {
            case cacheNodeTypeSpecificParameters = "CacheNodeTypeSpecificParameters"
            case cacheParameterGroupFamily = "CacheParameterGroupFamily"
            case marker = "Marker"
            case parameters = "Parameters"
        }
    }

    public struct Event: AWSDecodableShape {
        /// The date and time when the event occurred.
        public let date: Date?
        /// The text of the event.
        public let message: String?
        /// The identifier for the source of the event. For example, if the event occurred at the cluster level, the identifier would be the name of the cluster.
        public let sourceIdentifier: String?
        /// Specifies the origin of this event - a cluster, a parameter group, a security group, etc.
        public let sourceType: SourceType?

        @inlinable
        public init(date: Date? = nil, message: String? = nil, sourceIdentifier: String? = nil, sourceType: SourceType? = nil) {
            self.date = date
            self.message = message
            self.sourceIdentifier = sourceIdentifier
            self.sourceType = sourceType
        }

        private enum CodingKeys: String, CodingKey {
            case date = "Date"
            case message = "Message"
            case sourceIdentifier = "SourceIdentifier"
            case sourceType = "SourceType"
        }
    }

    public struct EventsMessage: AWSDecodableShape {
        public struct _EventsEncoding: ArrayCoderProperties { public static let member = "Event" }

        /// A list of events. Each element in the list contains detailed information about one event.
        @OptionalCustomCoding<ArrayCoder<_EventsEncoding, Event>>
        public var events: [Event]?
        /// Provides an identifier to allow retrieval of paginated results.
        public let marker: String?

        @inlinable
        public init(events: [Event]? = nil, marker: String? = nil) {
            self.events = events
            self.marker = marker
        }

        private enum CodingKeys: String, CodingKey {
            case events = "Events"
            case marker = "Marker"
        }
    }

    public struct ExportServerlessCacheSnapshotRequest: AWSEncodableShape {
        /// Name of the Amazon S3 bucket to export the snapshot to. The Amazon S3 bucket must also be in same region  as the snapshot. Available for Valkey and Redis OSS only.
        public let s3BucketName: String?
        /// The identifier of the serverless cache snapshot to be exported to S3. Available for Valkey and Redis OSS only.
        public let serverlessCacheSnapshotName: String?

        @inlinable
        public init(s3BucketName: String? = nil, serverlessCacheSnapshotName: String? = nil) {
            self.s3BucketName = s3BucketName
            self.serverlessCacheSnapshotName = serverlessCacheSnapshotName
        }

        private enum CodingKeys: String, CodingKey {
            case s3BucketName = "S3BucketName"
            case serverlessCacheSnapshotName = "ServerlessCacheSnapshotName"
        }
    }

    public struct ExportServerlessCacheSnapshotResponse: AWSDecodableShape {
        /// The state of a serverless cache at a specific point in time, to the millisecond. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let serverlessCacheSnapshot: ServerlessCacheSnapshot?

        @inlinable
        public init(serverlessCacheSnapshot: ServerlessCacheSnapshot? = nil) {
            self.serverlessCacheSnapshot = serverlessCacheSnapshot
        }

        private enum CodingKeys: String, CodingKey {
            case serverlessCacheSnapshot = "ServerlessCacheSnapshot"
        }
    }

    public struct FailoverGlobalReplicationGroupMessage: AWSEncodableShape {
        /// The name of the Global datastore
        public let globalReplicationGroupId: String?
        /// The Amazon region of the primary cluster of the Global datastore
        public let primaryRegion: String?
        /// The name of the primary replication group
        public let primaryReplicationGroupId: String?

        @inlinable
        public init(globalReplicationGroupId: String? = nil, primaryRegion: String? = nil, primaryReplicationGroupId: String? = nil) {
            self.globalReplicationGroupId = globalReplicationGroupId
            self.primaryRegion = primaryRegion
            self.primaryReplicationGroupId = primaryReplicationGroupId
        }

        private enum CodingKeys: String, CodingKey {
            case globalReplicationGroupId = "GlobalReplicationGroupId"
            case primaryRegion = "PrimaryRegion"
            case primaryReplicationGroupId = "PrimaryReplicationGroupId"
        }
    }

    public struct FailoverGlobalReplicationGroupResult: AWSDecodableShape {
        public let globalReplicationGroup: GlobalReplicationGroup?

        @inlinable
        public init(globalReplicationGroup: GlobalReplicationGroup? = nil) {
            self.globalReplicationGroup = globalReplicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case globalReplicationGroup = "GlobalReplicationGroup"
        }
    }

    public struct Filter: AWSEncodableShape {
        /// The property being filtered. For example, UserId.
        public let name: String?
        /// The property values to filter on. For example, "user-123".
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var values: [String]?

        @inlinable
        public init(name: String? = nil, values: [String]? = nil) {
            self.name = name
            self.values = values
        }

        public func validate(name: String) throws {
            try self.validate(self.name, name: "name", parent: name, pattern: "\\S")
            try self.values?.forEach {
                try validate($0, name: "values[]", parent: name, pattern: "\\S")
            }
            try self.validate(self.values, name: "values", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
            case values = "Values"
        }
    }

    public struct GlobalNodeGroup: AWSDecodableShape {
        /// The name of the global node group
        public let globalNodeGroupId: String?
        /// The keyspace for this node group
        public let slots: String?

        @inlinable
        public init(globalNodeGroupId: String? = nil, slots: String? = nil) {
            self.globalNodeGroupId = globalNodeGroupId
            self.slots = slots
        }

        private enum CodingKeys: String, CodingKey {
            case globalNodeGroupId = "GlobalNodeGroupId"
            case slots = "Slots"
        }
    }

    public struct GlobalReplicationGroup: AWSDecodableShape {
        public struct _GlobalNodeGroupsEncoding: ArrayCoderProperties { public static let member = "GlobalNodeGroup" }
        public struct _MembersEncoding: ArrayCoderProperties { public static let member = "GlobalReplicationGroupMember" }

        /// The ARN (Amazon Resource Name) of the global replication group.
        public let arn: String?
        /// A flag that enables encryption at rest when set to true. You cannot modify the value of AtRestEncryptionEnabled after the replication group is created. To enable encryption at rest on a replication group you must set AtRestEncryptionEnabled to true when you create the replication group.   Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version 3.2.6, 4.x or later.
        public let atRestEncryptionEnabled: Bool?
        /// A flag that enables using an AuthToken (password) when issuing Valkey or Redis OSS  commands. Default: false
        public let authTokenEnabled: Bool?
        /// The cache node type of the Global datastore
        public let cacheNodeType: String?
        /// A flag that indicates whether the Global datastore is cluster enabled.
        public let clusterEnabled: Bool?
        /// The ElastiCache engine. For Valkey or Redis OSS only.
        public let engine: String?
        /// The ElastiCache engine version.
        public let engineVersion: String?
        /// Indicates the slot configuration and global identifier for each slice group.
        @OptionalCustomCoding<ArrayCoder<_GlobalNodeGroupsEncoding, GlobalNodeGroup>>
        public var globalNodeGroups: [GlobalNodeGroup]?
        /// The optional description of the Global datastore
        public let globalReplicationGroupDescription: String?
        /// The name of the Global datastore
        public let globalReplicationGroupId: String?
        /// The replication groups that comprise the Global datastore.
        @OptionalCustomCoding<ArrayCoder<_MembersEncoding, GlobalReplicationGroupMember>>
        public var members: [GlobalReplicationGroupMember]?
        /// The status of the Global datastore
        public let status: String?
        /// A flag that enables in-transit encryption when set to true.  Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version 3.2.6, 4.x or later.
        public let transitEncryptionEnabled: Bool?

        @inlinable
        public init(arn: String? = nil, atRestEncryptionEnabled: Bool? = nil, authTokenEnabled: Bool? = nil, cacheNodeType: String? = nil, clusterEnabled: Bool? = nil, engine: String? = nil, engineVersion: String? = nil, globalNodeGroups: [GlobalNodeGroup]? = nil, globalReplicationGroupDescription: String? = nil, globalReplicationGroupId: String? = nil, members: [GlobalReplicationGroupMember]? = nil, status: String? = nil, transitEncryptionEnabled: Bool? = nil) {
            self.arn = arn
            self.atRestEncryptionEnabled = atRestEncryptionEnabled
            self.authTokenEnabled = authTokenEnabled
            self.cacheNodeType = cacheNodeType
            self.clusterEnabled = clusterEnabled
            self.engine = engine
            self.engineVersion = engineVersion
            self.globalNodeGroups = globalNodeGroups
            self.globalReplicationGroupDescription = globalReplicationGroupDescription
            self.globalReplicationGroupId = globalReplicationGroupId
            self.members = members
            self.status = status
            self.transitEncryptionEnabled = transitEncryptionEnabled
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case atRestEncryptionEnabled = "AtRestEncryptionEnabled"
            case authTokenEnabled = "AuthTokenEnabled"
            case cacheNodeType = "CacheNodeType"
            case clusterEnabled = "ClusterEnabled"
            case engine = "Engine"
            case engineVersion = "EngineVersion"
            case globalNodeGroups = "GlobalNodeGroups"
            case globalReplicationGroupDescription = "GlobalReplicationGroupDescription"
            case globalReplicationGroupId = "GlobalReplicationGroupId"
            case members = "Members"
            case status = "Status"
            case transitEncryptionEnabled = "TransitEncryptionEnabled"
        }
    }

    public struct GlobalReplicationGroupInfo: AWSDecodableShape {
        /// The name of the Global datastore
        public let globalReplicationGroupId: String?
        /// The role of the replication group in a Global datastore. Can be primary or secondary.
        public let globalReplicationGroupMemberRole: String?

        @inlinable
        public init(globalReplicationGroupId: String? = nil, globalReplicationGroupMemberRole: String? = nil) {
            self.globalReplicationGroupId = globalReplicationGroupId
            self.globalReplicationGroupMemberRole = globalReplicationGroupMemberRole
        }

        private enum CodingKeys: String, CodingKey {
            case globalReplicationGroupId = "GlobalReplicationGroupId"
            case globalReplicationGroupMemberRole = "GlobalReplicationGroupMemberRole"
        }
    }

    public struct GlobalReplicationGroupMember: AWSDecodableShape {
        /// Indicates whether automatic failover is enabled for the replication group.
        public let automaticFailover: AutomaticFailoverStatus?
        /// The replication group id of the Global datastore member.
        public let replicationGroupId: String?
        /// The Amazon region of the Global datastore member.
        public let replicationGroupRegion: String?
        /// Indicates the role of the replication group, primary or secondary.
        public let role: String?
        /// The status of the membership of the replication group.
        public let status: String?

        @inlinable
        public init(automaticFailover: AutomaticFailoverStatus? = nil, replicationGroupId: String? = nil, replicationGroupRegion: String? = nil, role: String? = nil, status: String? = nil) {
            self.automaticFailover = automaticFailover
            self.replicationGroupId = replicationGroupId
            self.replicationGroupRegion = replicationGroupRegion
            self.role = role
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case automaticFailover = "AutomaticFailover"
            case replicationGroupId = "ReplicationGroupId"
            case replicationGroupRegion = "ReplicationGroupRegion"
            case role = "Role"
            case status = "Status"
        }
    }

    public struct IncreaseNodeGroupsInGlobalReplicationGroupMessage: AWSEncodableShape {
        public struct _RegionalConfigurationsEncoding: ArrayCoderProperties { public static let member = "RegionalConfiguration" }

        /// Indicates that the process begins immediately. At present, the only permitted value for this parameter is true.
        public let applyImmediately: Bool?
        /// The name of the Global datastore
        public let globalReplicationGroupId: String?
        /// Total number of node groups you want
        public let nodeGroupCount: Int?
        /// Describes the replication group IDs, the Amazon regions where they are stored and the shard configuration for each that comprise the Global datastore
        @OptionalCustomCoding<ArrayCoder<_RegionalConfigurationsEncoding, RegionalConfiguration>>
        public var regionalConfigurations: [RegionalConfiguration]?

        @inlinable
        public init(applyImmediately: Bool? = nil, globalReplicationGroupId: String? = nil, nodeGroupCount: Int? = nil, regionalConfigurations: [RegionalConfiguration]? = nil) {
            self.applyImmediately = applyImmediately
            self.globalReplicationGroupId = globalReplicationGroupId
            self.nodeGroupCount = nodeGroupCount
            self.regionalConfigurations = regionalConfigurations
        }

        public func validate(name: String) throws {
            try self.regionalConfigurations?.forEach {
                try $0.validate(name: "\(name).regionalConfigurations[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case applyImmediately = "ApplyImmediately"
            case globalReplicationGroupId = "GlobalReplicationGroupId"
            case nodeGroupCount = "NodeGroupCount"
            case regionalConfigurations = "RegionalConfigurations"
        }
    }

    public struct IncreaseNodeGroupsInGlobalReplicationGroupResult: AWSDecodableShape {
        public let globalReplicationGroup: GlobalReplicationGroup?

        @inlinable
        public init(globalReplicationGroup: GlobalReplicationGroup? = nil) {
            self.globalReplicationGroup = globalReplicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case globalReplicationGroup = "GlobalReplicationGroup"
        }
    }

    public struct IncreaseReplicaCountMessage: AWSEncodableShape {
        public struct _ReplicaConfigurationEncoding: ArrayCoderProperties { public static let member = "ConfigureShard" }

        /// If True, the number of replica nodes is increased immediately. ApplyImmediately=False is not currently supported.
        public let applyImmediately: Bool?
        /// The number of read replica nodes you want at the completion of this operation. For Valkey or Redis OSS (cluster mode disabled) replication groups, this is the number of replica nodes in the replication group. For Valkey or Redis OSS (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups.
        public let newReplicaCount: Int?
        /// A list of ConfigureShard objects that can be used to configure each shard in a Valkey or Redis OSS (cluster mode enabled) replication group. The ConfigureShard has three members: NewReplicaCount, NodeGroupId, and PreferredAvailabilityZones.
        @OptionalCustomCoding<ArrayCoder<_ReplicaConfigurationEncoding, ConfigureShard>>
        public var replicaConfiguration: [ConfigureShard]?
        /// The id of the replication group to which you want to add replica nodes.
        public let replicationGroupId: String?

        @inlinable
        public init(applyImmediately: Bool? = nil, newReplicaCount: Int? = nil, replicaConfiguration: [ConfigureShard]? = nil, replicationGroupId: String? = nil) {
            self.applyImmediately = applyImmediately
            self.newReplicaCount = newReplicaCount
            self.replicaConfiguration = replicaConfiguration
            self.replicationGroupId = replicationGroupId
        }

        public func validate(name: String) throws {
            try self.replicaConfiguration?.forEach {
                try $0.validate(name: "\(name).replicaConfiguration[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case applyImmediately = "ApplyImmediately"
            case newReplicaCount = "NewReplicaCount"
            case replicaConfiguration = "ReplicaConfiguration"
            case replicationGroupId = "ReplicationGroupId"
        }
    }

    public struct IncreaseReplicaCountResult: AWSDecodableShape {
        public let replicationGroup: ReplicationGroup?

        @inlinable
        public init(replicationGroup: ReplicationGroup? = nil) {
            self.replicationGroup = replicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case replicationGroup = "ReplicationGroup"
        }
    }

    public struct KinesisFirehoseDestinationDetails: AWSEncodableShape & AWSDecodableShape {
        /// The name of the Kinesis Data Firehose delivery stream.
        public let deliveryStream: String?

        @inlinable
        public init(deliveryStream: String? = nil) {
            self.deliveryStream = deliveryStream
        }

        private enum CodingKeys: String, CodingKey {
            case deliveryStream = "DeliveryStream"
        }
    }

    public struct ListAllowedNodeTypeModificationsMessage: AWSEncodableShape {
        /// The name of the cluster you want to scale up to a larger node instanced type. ElastiCache uses the cluster id to identify the current node type of this cluster and from that to create a list of node types you can scale up to.  You must provide a value for either the CacheClusterId or the ReplicationGroupId.
        public let cacheClusterId: String?
        /// The name of the replication group want to scale up to a larger node type. ElastiCache uses the replication group id to identify the current node type being used by this replication group, and from that to create a list of node types you can scale up to.  You must provide a value for either the CacheClusterId or the ReplicationGroupId.
        public let replicationGroupId: String?

        @inlinable
        public init(cacheClusterId: String? = nil, replicationGroupId: String? = nil) {
            self.cacheClusterId = cacheClusterId
            self.replicationGroupId = replicationGroupId
        }

        private enum CodingKeys: String, CodingKey {
            case cacheClusterId = "CacheClusterId"
            case replicationGroupId = "ReplicationGroupId"
        }
    }

    public struct ListTagsForResourceMessage: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the resource for which you want the list of tags, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster or arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
        public let resourceName: String?

        @inlinable
        public init(resourceName: String? = nil) {
            self.resourceName = resourceName
        }

        private enum CodingKeys: String, CodingKey {
            case resourceName = "ResourceName"
        }
    }

    public struct LogDeliveryConfiguration: AWSDecodableShape {
        /// Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
        public let destinationDetails: DestinationDetails?
        /// Returns the destination type, either cloudwatch-logs or kinesis-firehose.
        public let destinationType: DestinationType?
        /// Returns the log format, either JSON or TEXT.
        public let logFormat: LogFormat?
        /// Refers to slow-log or engine-log.
        public let logType: LogType?
        /// Returns an error message for the log delivery configuration.
        public let message: String?
        /// Returns the log delivery configuration status. Values are one of enabling | disabling | modifying | active | error
        public let status: LogDeliveryConfigurationStatus?

        @inlinable
        public init(destinationDetails: DestinationDetails? = nil, destinationType: DestinationType? = nil, logFormat: LogFormat? = nil, logType: LogType? = nil, message: String? = nil, status: LogDeliveryConfigurationStatus? = nil) {
            self.destinationDetails = destinationDetails
            self.destinationType = destinationType
            self.logFormat = logFormat
            self.logType = logType
            self.message = message
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case destinationDetails = "DestinationDetails"
            case destinationType = "DestinationType"
            case logFormat = "LogFormat"
            case logType = "LogType"
            case message = "Message"
            case status = "Status"
        }
    }

    public struct LogDeliveryConfigurationRequest: AWSEncodableShape {
        /// Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
        public let destinationDetails: DestinationDetails?
        /// Specify either cloudwatch-logs or kinesis-firehose as the destination type.
        public let destinationType: DestinationType?
        /// Specify if log delivery is enabled. Default true.
        public let enabled: Bool?
        /// Specifies either JSON or TEXT
        public let logFormat: LogFormat?
        /// Refers to slow-log or engine-log..
        public let logType: LogType?

        @inlinable
        public init(destinationDetails: DestinationDetails? = nil, destinationType: DestinationType? = nil, enabled: Bool? = nil, logFormat: LogFormat? = nil, logType: LogType? = nil) {
            self.destinationDetails = destinationDetails
            self.destinationType = destinationType
            self.enabled = enabled
            self.logFormat = logFormat
            self.logType = logType
        }

        private enum CodingKeys: String, CodingKey {
            case destinationDetails = "DestinationDetails"
            case destinationType = "DestinationType"
            case enabled = "Enabled"
            case logFormat = "LogFormat"
            case logType = "LogType"
        }
    }

    public struct ModifyCacheClusterMessage: AWSEncodableShape {
        public struct _CacheNodeIdsToRemoveEncoding: ArrayCoderProperties { public static let member = "CacheNodeId" }
        public struct _CacheSecurityGroupNamesEncoding: ArrayCoderProperties { public static let member = "CacheSecurityGroupName" }
        public struct _LogDeliveryConfigurationsEncoding: ArrayCoderProperties { public static let member = "LogDeliveryConfigurationRequest" }
        public struct _NewAvailabilityZonesEncoding: ArrayCoderProperties { public static let member = "PreferredAvailabilityZone" }
        public struct _SecurityGroupIdsEncoding: ArrayCoderProperties { public static let member = "SecurityGroupId" }

        /// If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the cluster. If false, changes to the cluster are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.  If you perform a ModifyCacheCluster before a pending modification is applied, the pending modification is replaced by the newer modification.  Valid values: true | false  Default: false
        public let applyImmediately: Bool?
        /// Reserved parameter. The password used to access a password protected server. This parameter must be specified with the auth-token-update parameter. Password constraints:   Must be only printable ASCII characters   Must be at least 16 characters and no more than 128 characters in length   Cannot contain any of the following characters: '/', '"', or '@', '%'   For more information, see AUTH password at AUTH.
        public let authToken: String?
        /// Specifies the strategy to use to update the AUTH token. This parameter must be specified with the auth-token parameter. Possible values:   ROTATE - default, if no update strategy is provided   SET - allowed only after ROTATE   DELETE - allowed only when transitioning to RBAC   For more information, see Authenticating Users with AUTH
        public let authTokenUpdateStrategy: AuthTokenUpdateStrategyType?
        ///  If you are running Valkey 7.2 or Redis OSS engine version 6.0 or later, set this parameter to yes  to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
        public let autoMinorVersionUpgrade: Bool?
        /// Specifies whether the new nodes in this Memcached cluster are all created in a single Availability Zone or created across multiple Availability Zones. Valid values: single-az | cross-az. This option is only supported for Memcached clusters.  You cannot specify single-az if the Memcached cluster already has cache nodes in different Availability Zones. If cross-az is specified, existing Memcached nodes remain in their current Availability Zone. Only newly created nodes are located in different Availability Zones.
        public let azMode: AZMode?
        /// The cluster identifier. This value is stored as a lowercase string.
        public let cacheClusterId: String?
        /// A list of cache node IDs to be removed. A node ID is a numeric identifier (0001, 0002, etc.). This parameter is only valid when NumCacheNodes is less than the existing number of cache nodes. The number of cache node IDs supplied in this parameter must match the difference between the existing number of cache nodes in the cluster or pending cache nodes, whichever is greater, and the value of NumCacheNodes in the request. For example: If you have 3 active cache nodes, 7 pending cache nodes, and the number of cache nodes in this ModifyCacheCluster call is 5, you must list 2 (7 - 5) cache node IDs to remove.
        @OptionalCustomCoding<ArrayCoder<_CacheNodeIdsToRemoveEncoding, String>>
        public var cacheNodeIdsToRemove: [String]?
        /// A valid cache node type that you want to scale this cluster up to.
        public let cacheNodeType: String?
        /// The name of the cache parameter group to apply to this cluster. This change is asynchronously applied as soon as possible for parameters when the ApplyImmediately parameter is specified as true for this request.
        public let cacheParameterGroupName: String?
        /// A list of cache security group names to authorize on this cluster. This change is asynchronously applied as soon as possible. You can use this parameter only with clusters that are created outside of an Amazon Virtual Private Cloud (Amazon VPC). Constraints: Must contain no more than 255 alphanumeric characters. Must not be "Default".
        @OptionalCustomCoding<ArrayCoder<_CacheSecurityGroupNamesEncoding, String>>
        public var cacheSecurityGroupNames: [String]?
        /// The engine type used by the cache cluster. The options are valkey, memcached or redis.
        public let engine: String?
        /// The upgraded version of the cache engine to be run on the cache nodes.  Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster and create it anew with the earlier engine version.
        public let engineVersion: String?
        /// The network type you choose when modifying a cluster, either ipv4 | ipv6. IPv6 is supported for workloads using Valkey 7.2 and above, Redis OSS engine version 6.2 to 7.1 or Memcached engine version 1.6.6 and above on all instances built on the Nitro system.
        public let ipDiscovery: IpDiscovery?
        /// Specifies the destination, format and type of the logs.
        @OptionalCustomCoding<ArrayCoder<_LogDeliveryConfigurationsEncoding, LogDeliveryConfigurationRequest>>
        public var logDeliveryConfigurations: [LogDeliveryConfigurationRequest]?
        ///  This option is only supported on Memcached clusters.  The list of Availability Zones where the new Memcached cache nodes are created. This parameter is only valid when NumCacheNodes in the request is greater than the sum of the number of active cache nodes and the number of cache nodes pending creation (which may be zero). The number of Availability Zones supplied in this list must match the cache nodes being added in this request. Scenarios:    Scenario 1: You have 3 active nodes and wish to add 2 nodes. Specify NumCacheNodes=5 (3 + 2) and optionally specify two Availability Zones for the two new nodes.    Scenario 2: You have 3 active nodes and 2 nodes pending creation (from the scenario 1 call) and want to add 1 more node. Specify NumCacheNodes=6 ((3 + 2) + 1) and optionally specify an Availability Zone for the new node.    Scenario 3: You want to cancel all pending operations. Specify NumCacheNodes=3 to cancel all pending operations.   The Availability Zone placement of nodes pending creation cannot be modified. If you wish to cancel any nodes pending creation, add 0 nodes by setting NumCacheNodes to the number of current nodes. If cross-az is specified, existing Memcached nodes remain in their current Availability Zone. Only newly created nodes can be located in different Availability Zones. For guidance on how to move existing Memcached nodes to different Availability Zones, see the Availability Zone Considerations section of Cache Node Considerations for Memcached.  Impact of new add/remove requests upon pending requests    Scenario-1   Pending Action: Delete   New Request: Delete   Result: The new delete, pending or immediate, replaces the pending delete.     Scenario-2   Pending Action: Delete   New Request: Create   Result: The new create, pending or immediate, replaces the pending delete.     Scenario-3   Pending Action: Create   New Request: Delete   Result: The new delete, pending or immediate, replaces the pending create.     Scenario-4   Pending Action: Create   New Request: Create   Result: The new create is added to the pending create.   Important: If the new create request is Apply Immediately - Yes, all creates are performed immediately. If the new create request is Apply Immediately - No, all creates are pending.
        @OptionalCustomCoding<ArrayCoder<_NewAvailabilityZonesEncoding, String>>
        public var newAvailabilityZones: [String]?
        /// The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications are sent.  The Amazon SNS topic owner must be same as the cluster owner.
        public let notificationTopicArn: String?
        /// The status of the Amazon SNS notification topic. Notifications are sent only if the status is active. Valid values: active | inactive
        public let notificationTopicStatus: String?
        /// The number of cache nodes that the cluster should have. If the value for NumCacheNodes is greater than the sum of the number of current cache nodes and the number of cache nodes pending creation (which may be zero), more nodes are added. If the value is less than the number of existing cache nodes, nodes are removed. If the value is equal to the number of current cache nodes, any pending add or remove requests are canceled. If you are removing cache nodes, you must use the CacheNodeIdsToRemove parameter to provide the IDs of the specific cache nodes to remove. For clusters running Valkey or Redis OSS, this value must be 1. For clusters running Memcached, this value must be between 1 and 40.  Adding or removing Memcached cache nodes can be applied immediately or as a pending operation (see ApplyImmediately). A pending operation to modify the number of cache nodes in a cluster during its maintenance window, whether by adding or removing nodes in accordance with the scale out architecture, is not queued. The customer's latest request to add or remove nodes to the cluster overrides any previous pending operations to modify the number of cache nodes in the cluster. For example, a request to remove 2 nodes would override a previous pending operation to remove 3 nodes. Similarly, a request to add 2 nodes would override a previous pending operation to remove 3 nodes and vice versa. As Memcached cache nodes may now be provisioned in different Availability Zones with flexible cache node placement, a request to add nodes does not automatically override a previous pending operation to add nodes. The customer can modify the previous pending operation to add more nodes or explicitly cancel the pending request and retry the new request. To cancel pending operations to modify the number of cache nodes in a cluster, use the ModifyCacheCluster request and set NumCacheNodes equal to the number of cache nodes currently in the cluster.
        public let numCacheNodes: Int?
        /// Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:    sun     mon     tue     wed     thu     fri     sat    Example: sun:23:00-mon:01:30
        public let preferredMaintenanceWindow: String?
        /// Configures horizontal or vertical scaling for Memcached clusters, specifying the scaling percentage and interval.
        public let scaleConfig: ScaleConfig?
        /// Specifies the VPC Security Groups associated with the cluster. This parameter can be used only with clusters that are created in an Amazon Virtual Private Cloud (Amazon VPC).
        @OptionalCustomCoding<ArrayCoder<_SecurityGroupIdsEncoding, String>>
        public var securityGroupIds: [String]?
        /// The number of days for which ElastiCache retains automatic cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.  If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.
        public let snapshotRetentionLimit: Int?
        /// The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your cluster.
        public let snapshotWindow: String?

        @inlinable
        public init(applyImmediately: Bool? = nil, authToken: String? = nil, authTokenUpdateStrategy: AuthTokenUpdateStrategyType? = nil, autoMinorVersionUpgrade: Bool? = nil, azMode: AZMode? = nil, cacheClusterId: String? = nil, cacheNodeIdsToRemove: [String]? = nil, cacheNodeType: String? = nil, cacheParameterGroupName: String? = nil, cacheSecurityGroupNames: [String]? = nil, engine: String? = nil, engineVersion: String? = nil, ipDiscovery: IpDiscovery? = nil, logDeliveryConfigurations: [LogDeliveryConfigurationRequest]? = nil, newAvailabilityZones: [String]? = nil, notificationTopicArn: String? = nil, notificationTopicStatus: String? = nil, numCacheNodes: Int? = nil, preferredMaintenanceWindow: String? = nil, scaleConfig: ScaleConfig? = nil, securityGroupIds: [String]? = nil, snapshotRetentionLimit: Int? = nil, snapshotWindow: String? = nil) {
            self.applyImmediately = applyImmediately
            self.authToken = authToken
            self.authTokenUpdateStrategy = authTokenUpdateStrategy
            self.autoMinorVersionUpgrade = autoMinorVersionUpgrade
            self.azMode = azMode
            self.cacheClusterId = cacheClusterId
            self.cacheNodeIdsToRemove = cacheNodeIdsToRemove
            self.cacheNodeType = cacheNodeType
            self.cacheParameterGroupName = cacheParameterGroupName
            self.cacheSecurityGroupNames = cacheSecurityGroupNames
            self.engine = engine
            self.engineVersion = engineVersion
            self.ipDiscovery = ipDiscovery
            self.logDeliveryConfigurations = logDeliveryConfigurations
            self.newAvailabilityZones = newAvailabilityZones
            self.notificationTopicArn = notificationTopicArn
            self.notificationTopicStatus = notificationTopicStatus
            self.numCacheNodes = numCacheNodes
            self.preferredMaintenanceWindow = preferredMaintenanceWindow
            self.scaleConfig = scaleConfig
            self.securityGroupIds = securityGroupIds
            self.snapshotRetentionLimit = snapshotRetentionLimit
            self.snapshotWindow = snapshotWindow
        }

        private enum CodingKeys: String, CodingKey {
            case applyImmediately = "ApplyImmediately"
            case authToken = "AuthToken"
            case authTokenUpdateStrategy = "AuthTokenUpdateStrategy"
            case autoMinorVersionUpgrade = "AutoMinorVersionUpgrade"
            case azMode = "AZMode"
            case cacheClusterId = "CacheClusterId"
            case cacheNodeIdsToRemove = "CacheNodeIdsToRemove"
            case cacheNodeType = "CacheNodeType"
            case cacheParameterGroupName = "CacheParameterGroupName"
            case cacheSecurityGroupNames = "CacheSecurityGroupNames"
            case engine = "Engine"
            case engineVersion = "EngineVersion"
            case ipDiscovery = "IpDiscovery"
            case logDeliveryConfigurations = "LogDeliveryConfigurations"
            case newAvailabilityZones = "NewAvailabilityZones"
            case notificationTopicArn = "NotificationTopicArn"
            case notificationTopicStatus = "NotificationTopicStatus"
            case numCacheNodes = "NumCacheNodes"
            case preferredMaintenanceWindow = "PreferredMaintenanceWindow"
            case scaleConfig = "ScaleConfig"
            case securityGroupIds = "SecurityGroupIds"
            case snapshotRetentionLimit = "SnapshotRetentionLimit"
            case snapshotWindow = "SnapshotWindow"
        }
    }

    public struct ModifyCacheClusterResult: AWSDecodableShape {
        public let cacheCluster: CacheCluster?

        @inlinable
        public init(cacheCluster: CacheCluster? = nil) {
            self.cacheCluster = cacheCluster
        }

        private enum CodingKeys: String, CodingKey {
            case cacheCluster = "CacheCluster"
        }
    }

    public struct ModifyCacheParameterGroupMessage: AWSEncodableShape {
        public struct _ParameterNameValuesEncoding: ArrayCoderProperties { public static let member = "ParameterNameValue" }

        /// The name of the cache parameter group to modify.
        public let cacheParameterGroupName: String?
        /// An array of parameter names and values for the parameter update. You must supply at least one parameter name and value; subsequent arguments are optional. A maximum of 20 parameters may be modified per request.
        @OptionalCustomCoding<ArrayCoder<_ParameterNameValuesEncoding, ParameterNameValue>>
        public var parameterNameValues: [ParameterNameValue]?

        @inlinable
        public init(cacheParameterGroupName: String? = nil, parameterNameValues: [ParameterNameValue]? = nil) {
            self.cacheParameterGroupName = cacheParameterGroupName
            self.parameterNameValues = parameterNameValues
        }

        private enum CodingKeys: String, CodingKey {
            case cacheParameterGroupName = "CacheParameterGroupName"
            case parameterNameValues = "ParameterNameValues"
        }
    }

    public struct ModifyCacheSubnetGroupMessage: AWSEncodableShape {
        public struct _SubnetIdsEncoding: ArrayCoderProperties { public static let member = "SubnetIdentifier" }

        /// A description of the cache subnet group.
        public let cacheSubnetGroupDescription: String?
        /// The name for the cache subnet group. This value is stored as a lowercase string. Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Example: mysubnetgroup
        public let cacheSubnetGroupName: String?
        /// The EC2 subnet IDs for the cache subnet group.
        @OptionalCustomCoding<ArrayCoder<_SubnetIdsEncoding, String>>
        public var subnetIds: [String]?

        @inlinable
        public init(cacheSubnetGroupDescription: String? = nil, cacheSubnetGroupName: String? = nil, subnetIds: [String]? = nil) {
            self.cacheSubnetGroupDescription = cacheSubnetGroupDescription
            self.cacheSubnetGroupName = cacheSubnetGroupName
            self.subnetIds = subnetIds
        }

        private enum CodingKeys: String, CodingKey {
            case cacheSubnetGroupDescription = "CacheSubnetGroupDescription"
            case cacheSubnetGroupName = "CacheSubnetGroupName"
            case subnetIds = "SubnetIds"
        }
    }

    public struct ModifyCacheSubnetGroupResult: AWSDecodableShape {
        public let cacheSubnetGroup: CacheSubnetGroup?

        @inlinable
        public init(cacheSubnetGroup: CacheSubnetGroup? = nil) {
            self.cacheSubnetGroup = cacheSubnetGroup
        }

        private enum CodingKeys: String, CodingKey {
            case cacheSubnetGroup = "CacheSubnetGroup"
        }
    }

    public struct ModifyGlobalReplicationGroupMessage: AWSEncodableShape {
        /// This parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible. Modifications to Global Replication Groups cannot be requested to be applied in PreferredMaintenceWindow.
        public let applyImmediately: Bool?
        /// Determines whether a read replica is automatically promoted to read/write primary if the existing primary encounters a failure.
        public let automaticFailoverEnabled: Bool?
        /// A valid cache node type that you want to scale this Global datastore to.
        public let cacheNodeType: String?
        /// The name of the cache parameter group to use with the Global datastore. It must be compatible with the major engine version used by the Global datastore.
        public let cacheParameterGroupName: String?
        /// Modifies the engine listed in a global replication group message. The options are redis, memcached or valkey.
        public let engine: String?
        /// The upgraded version of the cache engine to be run on the clusters in the Global datastore.
        public let engineVersion: String?
        /// A description of the Global datastore
        public let globalReplicationGroupDescription: String?
        /// The name of the Global datastore
        public let globalReplicationGroupId: String?

        @inlinable
        public init(applyImmediately: Bool? = nil, automaticFailoverEnabled: Bool? = nil, cacheNodeType: String? = nil, cacheParameterGroupName: String? = nil, engine: String? = nil, engineVersion: String? = nil, globalReplicationGroupDescription: String? = nil, globalReplicationGroupId: String? = nil) {
            self.applyImmediately = applyImmediately
            self.automaticFailoverEnabled = automaticFailoverEnabled
            self.cacheNodeType = cacheNodeType
            self.cacheParameterGroupName = cacheParameterGroupName
            self.engine = engine
            self.engineVersion = engineVersion
            self.globalReplicationGroupDescription = globalReplicationGroupDescription
            self.globalReplicationGroupId = globalReplicationGroupId
        }

        private enum CodingKeys: String, CodingKey {
            case applyImmediately = "ApplyImmediately"
            case automaticFailoverEnabled = "AutomaticFailoverEnabled"
            case cacheNodeType = "CacheNodeType"
            case cacheParameterGroupName = "CacheParameterGroupName"
            case engine = "Engine"
            case engineVersion = "EngineVersion"
            case globalReplicationGroupDescription = "GlobalReplicationGroupDescription"
            case globalReplicationGroupId = "GlobalReplicationGroupId"
        }
    }

    public struct ModifyGlobalReplicationGroupResult: AWSDecodableShape {
        public let globalReplicationGroup: GlobalReplicationGroup?

        @inlinable
        public init(globalReplicationGroup: GlobalReplicationGroup? = nil) {
            self.globalReplicationGroup = globalReplicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case globalReplicationGroup = "GlobalReplicationGroup"
        }
    }

    public struct ModifyReplicationGroupMessage: AWSEncodableShape {
        public struct _CacheSecurityGroupNamesEncoding: ArrayCoderProperties { public static let member = "CacheSecurityGroupName" }
        public struct _LogDeliveryConfigurationsEncoding: ArrayCoderProperties { public static let member = "LogDeliveryConfigurationRequest" }
        public struct _SecurityGroupIdsEncoding: ArrayCoderProperties { public static let member = "SecurityGroupId" }

        /// If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the replication group. If false, changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first. Valid values: true | false  Default: false
        public let applyImmediately: Bool?
        /// Reserved parameter. The password used to access a password protected server. This parameter must be specified with the auth-token-update-strategy  parameter. Password constraints:   Must be only printable ASCII characters   Must be at least 16 characters and no more than 128 characters in length   Cannot contain any of the following characters: '/', '"', or '@', '%'   For more information, see AUTH password at AUTH.
        public let authToken: String?
        /// Specifies the strategy to use to update the AUTH token. This parameter must be specified with the auth-token parameter. Possible values:   ROTATE - default, if no update strategy is provided   SET - allowed only after ROTATE   DELETE - allowed only when transitioning to RBAC   For more information, see Authenticating Users with AUTH
        public let authTokenUpdateStrategy: AuthTokenUpdateStrategyType?
        /// Determines whether a read replica is automatically promoted to read/write primary if the existing primary encounters a failure. Valid values: true | false
        public let automaticFailoverEnabled: Bool?
        ///  If you are running Valkey or Redis OSS engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
        public let autoMinorVersionUpgrade: Bool?
        /// A valid cache node type that you want to scale this replication group to.
        public let cacheNodeType: String?
        /// The name of the cache parameter group to apply to all of the clusters in this replication group. This change is asynchronously applied as soon as possible for parameters when the ApplyImmediately parameter is specified as true for this request.
        public let cacheParameterGroupName: String?
        /// A list of cache security group names to authorize for the clusters in this replication group. This change is asynchronously applied as soon as possible. This parameter can be used only with replication group containing clusters running outside of an Amazon Virtual Private Cloud (Amazon VPC). Constraints: Must contain no more than 255 alphanumeric characters. Must not be Default.
        @OptionalCustomCoding<ArrayCoder<_CacheSecurityGroupNamesEncoding, String>>
        public var cacheSecurityGroupNames: [String]?
        /// Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Valkey or Redis OSS clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Valkey or Redis OSS clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.
        public let clusterMode: ClusterMode?
        /// Modifies the engine listed in a replication group message. The options are redis, memcached or valkey.
        public let engine: String?
        /// The upgraded version of the cache engine to be run on the clusters in the replication group.  Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing replication group and create it anew with the earlier engine version.
        public let engineVersion: String?
        /// The network type you choose when modifying a cluster, either ipv4 | ipv6. IPv6 is supported for workloads using Valkey 7.2 and above, Redis OSS engine version 6.2 to 7.1 and Memcached engine version 1.6.6 and above on all instances built on the Nitro system.
        public let ipDiscovery: IpDiscovery?
        /// Specifies the destination, format and type of the logs.
        @OptionalCustomCoding<ArrayCoder<_LogDeliveryConfigurationsEncoding, LogDeliveryConfigurationRequest>>
        public var logDeliveryConfigurations: [LogDeliveryConfigurationRequest]?
        /// A flag to indicate MultiAZ is enabled.
        public let multiAZEnabled: Bool?
        /// Deprecated. This parameter is not used.
        public let nodeGroupId: String?
        /// The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications are sent.  The Amazon SNS topic owner must be same as the replication group owner.
        public let notificationTopicArn: String?
        /// The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is active. Valid values: active | inactive
        public let notificationTopicStatus: String?
        /// Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:    sun     mon     tue     wed     thu     fri     sat    Example: sun:23:00-mon:01:30
        public let preferredMaintenanceWindow: String?
        /// For replication groups with a single primary, if this parameter is specified, ElastiCache promotes the specified cluster in the specified replication group to the primary role. The nodes of all other clusters in the replication group are read replicas.
        public let primaryClusterId: String?
        /// Removes the user group associated with this replication group.
        public let removeUserGroups: Bool?
        /// A description for the replication group. Maximum length is 255 characters.
        public let replicationGroupDescription: String?
        /// The identifier of the replication group to modify.
        public let replicationGroupId: String?
        /// Specifies the VPC Security Groups associated with the clusters in the replication group. This parameter can be used only with replication group containing clusters running in an Amazon Virtual Private Cloud (Amazon VPC).
        @OptionalCustomCoding<ArrayCoder<_SecurityGroupIdsEncoding, String>>
        public var securityGroupIds: [String]?
        /// The number of days for which ElastiCache retains automatic node group (shard) snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.  Important If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.
        public let snapshotRetentionLimit: Int?
        /// The cluster ID that is used as the daily snapshot source for the replication group. This parameter cannot be set for Valkey or Redis OSS (cluster mode enabled) replication groups.
        public let snapshottingClusterId: String?
        /// The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of the node group (shard) specified by SnapshottingClusterId. Example: 05:00-09:00  If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
        public let snapshotWindow: String?
        /// A flag that enables in-transit encryption when set to true. If you are enabling in-transit encryption for an existing cluster, you must also set TransitEncryptionMode to preferred.
        public let transitEncryptionEnabled: Bool?
        /// A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. You must set TransitEncryptionEnabled to true, for your existing cluster, and set TransitEncryptionMode to preferred in the same request to allow both encrypted and unencrypted connections at the same time. Once you migrate all your Valkey or Redis OSS clients to use encrypted connections you can set the value to required to allow encrypted connections only. Setting TransitEncryptionMode to required is a two-step process that requires you to first set the TransitEncryptionMode to preferred, after that you can set TransitEncryptionMode to required.
        public let transitEncryptionMode: TransitEncryptionMode?
        /// The ID of the user group you are associating with the replication group.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var userGroupIdsToAdd: [String]?
        /// The ID of the user group to disassociate from the replication group, meaning the users in the group no longer can access the replication group.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var userGroupIdsToRemove: [String]?

        @inlinable
        public init(applyImmediately: Bool? = nil, authToken: String? = nil, authTokenUpdateStrategy: AuthTokenUpdateStrategyType? = nil, automaticFailoverEnabled: Bool? = nil, autoMinorVersionUpgrade: Bool? = nil, cacheNodeType: String? = nil, cacheParameterGroupName: String? = nil, cacheSecurityGroupNames: [String]? = nil, clusterMode: ClusterMode? = nil, engine: String? = nil, engineVersion: String? = nil, ipDiscovery: IpDiscovery? = nil, logDeliveryConfigurations: [LogDeliveryConfigurationRequest]? = nil, multiAZEnabled: Bool? = nil, notificationTopicArn: String? = nil, notificationTopicStatus: String? = nil, preferredMaintenanceWindow: String? = nil, primaryClusterId: String? = nil, removeUserGroups: Bool? = nil, replicationGroupDescription: String? = nil, replicationGroupId: String? = nil, securityGroupIds: [String]? = nil, snapshotRetentionLimit: Int? = nil, snapshottingClusterId: String? = nil, snapshotWindow: String? = nil, transitEncryptionEnabled: Bool? = nil, transitEncryptionMode: TransitEncryptionMode? = nil, userGroupIdsToAdd: [String]? = nil, userGroupIdsToRemove: [String]? = nil) {
            self.applyImmediately = applyImmediately
            self.authToken = authToken
            self.authTokenUpdateStrategy = authTokenUpdateStrategy
            self.automaticFailoverEnabled = automaticFailoverEnabled
            self.autoMinorVersionUpgrade = autoMinorVersionUpgrade
            self.cacheNodeType = cacheNodeType
            self.cacheParameterGroupName = cacheParameterGroupName
            self.cacheSecurityGroupNames = cacheSecurityGroupNames
            self.clusterMode = clusterMode
            self.engine = engine
            self.engineVersion = engineVersion
            self.ipDiscovery = ipDiscovery
            self.logDeliveryConfigurations = logDeliveryConfigurations
            self.multiAZEnabled = multiAZEnabled
            self.nodeGroupId = nil
            self.notificationTopicArn = notificationTopicArn
            self.notificationTopicStatus = notificationTopicStatus
            self.preferredMaintenanceWindow = preferredMaintenanceWindow
            self.primaryClusterId = primaryClusterId
            self.removeUserGroups = removeUserGroups
            self.replicationGroupDescription = replicationGroupDescription
            self.replicationGroupId = replicationGroupId
            self.securityGroupIds = securityGroupIds
            self.snapshotRetentionLimit = snapshotRetentionLimit
            self.snapshottingClusterId = snapshottingClusterId
            self.snapshotWindow = snapshotWindow
            self.transitEncryptionEnabled = transitEncryptionEnabled
            self.transitEncryptionMode = transitEncryptionMode
            self.userGroupIdsToAdd = userGroupIdsToAdd
            self.userGroupIdsToRemove = userGroupIdsToRemove
        }

        @available(*, deprecated, message: "Members nodeGroupId have been deprecated")
        @inlinable
        public init(applyImmediately: Bool? = nil, authToken: String? = nil, authTokenUpdateStrategy: AuthTokenUpdateStrategyType? = nil, automaticFailoverEnabled: Bool? = nil, autoMinorVersionUpgrade: Bool? = nil, cacheNodeType: String? = nil, cacheParameterGroupName: String? = nil, cacheSecurityGroupNames: [String]? = nil, clusterMode: ClusterMode? = nil, engine: String? = nil, engineVersion: String? = nil, ipDiscovery: IpDiscovery? = nil, logDeliveryConfigurations: [LogDeliveryConfigurationRequest]? = nil, multiAZEnabled: Bool? = nil, nodeGroupId: String? = nil, notificationTopicArn: String? = nil, notificationTopicStatus: String? = nil, preferredMaintenanceWindow: String? = nil, primaryClusterId: String? = nil, removeUserGroups: Bool? = nil, replicationGroupDescription: String? = nil, replicationGroupId: String? = nil, securityGroupIds: [String]? = nil, snapshotRetentionLimit: Int? = nil, snapshottingClusterId: String? = nil, snapshotWindow: String? = nil, transitEncryptionEnabled: Bool? = nil, transitEncryptionMode: TransitEncryptionMode? = nil, userGroupIdsToAdd: [String]? = nil, userGroupIdsToRemove: [String]? = nil) {
            self.applyImmediately = applyImmediately
            self.authToken = authToken
            self.authTokenUpdateStrategy = authTokenUpdateStrategy
            self.automaticFailoverEnabled = automaticFailoverEnabled
            self.autoMinorVersionUpgrade = autoMinorVersionUpgrade
            self.cacheNodeType = cacheNodeType
            self.cacheParameterGroupName = cacheParameterGroupName
            self.cacheSecurityGroupNames = cacheSecurityGroupNames
            self.clusterMode = clusterMode
            self.engine = engine
            self.engineVersion = engineVersion
            self.ipDiscovery = ipDiscovery
            self.logDeliveryConfigurations = logDeliveryConfigurations
            self.multiAZEnabled = multiAZEnabled
            self.nodeGroupId = nodeGroupId
            self.notificationTopicArn = notificationTopicArn
            self.notificationTopicStatus = notificationTopicStatus
            self.preferredMaintenanceWindow = preferredMaintenanceWindow
            self.primaryClusterId = primaryClusterId
            self.removeUserGroups = removeUserGroups
            self.replicationGroupDescription = replicationGroupDescription
            self.replicationGroupId = replicationGroupId
            self.securityGroupIds = securityGroupIds
            self.snapshotRetentionLimit = snapshotRetentionLimit
            self.snapshottingClusterId = snapshottingClusterId
            self.snapshotWindow = snapshotWindow
            self.transitEncryptionEnabled = transitEncryptionEnabled
            self.transitEncryptionMode = transitEncryptionMode
            self.userGroupIdsToAdd = userGroupIdsToAdd
            self.userGroupIdsToRemove = userGroupIdsToRemove
        }

        public func validate(name: String) throws {
            try self.userGroupIdsToAdd?.forEach {
                try validate($0, name: "userGroupIdsToAdd[]", parent: name, min: 1)
                try validate($0, name: "userGroupIdsToAdd[]", parent: name, pattern: "^[a-zA-Z][a-zA-Z0-9\\-]*$")
            }
            try self.userGroupIdsToRemove?.forEach {
                try validate($0, name: "userGroupIdsToRemove[]", parent: name, min: 1)
                try validate($0, name: "userGroupIdsToRemove[]", parent: name, pattern: "^[a-zA-Z][a-zA-Z0-9\\-]*$")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case applyImmediately = "ApplyImmediately"
            case authToken = "AuthToken"
            case authTokenUpdateStrategy = "AuthTokenUpdateStrategy"
            case automaticFailoverEnabled = "AutomaticFailoverEnabled"
            case autoMinorVersionUpgrade = "AutoMinorVersionUpgrade"
            case cacheNodeType = "CacheNodeType"
            case cacheParameterGroupName = "CacheParameterGroupName"
            case cacheSecurityGroupNames = "CacheSecurityGroupNames"
            case clusterMode = "ClusterMode"
            case engine = "Engine"
            case engineVersion = "EngineVersion"
            case ipDiscovery = "IpDiscovery"
            case logDeliveryConfigurations = "LogDeliveryConfigurations"
            case multiAZEnabled = "MultiAZEnabled"
            case nodeGroupId = "NodeGroupId"
            case notificationTopicArn = "NotificationTopicArn"
            case notificationTopicStatus = "NotificationTopicStatus"
            case preferredMaintenanceWindow = "PreferredMaintenanceWindow"
            case primaryClusterId = "PrimaryClusterId"
            case removeUserGroups = "RemoveUserGroups"
            case replicationGroupDescription = "ReplicationGroupDescription"
            case replicationGroupId = "ReplicationGroupId"
            case securityGroupIds = "SecurityGroupIds"
            case snapshotRetentionLimit = "SnapshotRetentionLimit"
            case snapshottingClusterId = "SnapshottingClusterId"
            case snapshotWindow = "SnapshotWindow"
            case transitEncryptionEnabled = "TransitEncryptionEnabled"
            case transitEncryptionMode = "TransitEncryptionMode"
            case userGroupIdsToAdd = "UserGroupIdsToAdd"
            case userGroupIdsToRemove = "UserGroupIdsToRemove"
        }
    }

    public struct ModifyReplicationGroupResult: AWSDecodableShape {
        public let replicationGroup: ReplicationGroup?

        @inlinable
        public init(replicationGroup: ReplicationGroup? = nil) {
            self.replicationGroup = replicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case replicationGroup = "ReplicationGroup"
        }
    }

    public struct ModifyReplicationGroupShardConfigurationMessage: AWSEncodableShape {
        public struct _NodeGroupsToRemoveEncoding: ArrayCoderProperties { public static let member = "NodeGroupToRemove" }
        public struct _NodeGroupsToRetainEncoding: ArrayCoderProperties { public static let member = "NodeGroupToRetain" }
        public struct _ReshardingConfigurationEncoding: ArrayCoderProperties { public static let member = "ReshardingConfiguration" }

        /// Indicates that the shard reconfiguration process begins immediately. At present, the only permitted value for this parameter is true. Value: true
        public let applyImmediately: Bool?
        /// The number of node groups (shards) that results from the modification of the shard configuration.
        public let nodeGroupCount: Int?
        /// If the value of NodeGroupCount is less than the current number of node groups (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is required. NodeGroupsToRemove is a list of NodeGroupIds to remove from the cluster. ElastiCache will attempt to remove all node groups listed by NodeGroupsToRemove from the cluster.
        @OptionalCustomCoding<ArrayCoder<_NodeGroupsToRemoveEncoding, String>>
        public var nodeGroupsToRemove: [String]?
        /// If the value of NodeGroupCount is less than the current number of node groups (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is required. NodeGroupsToRetain is a list of NodeGroupIds to retain in the cluster. ElastiCache will attempt to remove all node groups except those listed by NodeGroupsToRetain from the cluster.
        @OptionalCustomCoding<ArrayCoder<_NodeGroupsToRetainEncoding, String>>
        public var nodeGroupsToRetain: [String]?
        /// The name of the Valkey or Redis OSS (cluster mode enabled) cluster (replication group) on which the shards are to be configured.
        public let replicationGroupId: String?
        /// Specifies the preferred availability zones for each node group in the cluster. If the value of NodeGroupCount is greater than the current number of node groups (shards), you can use this parameter to specify the preferred availability zones of the cluster's shards. If you omit this parameter ElastiCache selects availability zones for you. You can specify this parameter only if the value of NodeGroupCount is greater than the current number of node groups (shards).
        @OptionalCustomCoding<ArrayCoder<_ReshardingConfigurationEncoding, ReshardingConfiguration>>
        public var reshardingConfiguration: [ReshardingConfiguration]?

        @inlinable
        public init(applyImmediately: Bool? = nil, nodeGroupCount: Int? = nil, nodeGroupsToRemove: [String]? = nil, nodeGroupsToRetain: [String]? = nil, replicationGroupId: String? = nil, reshardingConfiguration: [ReshardingConfiguration]? = nil) {
            self.applyImmediately = applyImmediately
            self.nodeGroupCount = nodeGroupCount
            self.nodeGroupsToRemove = nodeGroupsToRemove
            self.nodeGroupsToRetain = nodeGroupsToRetain
            self.replicationGroupId = replicationGroupId
            self.reshardingConfiguration = reshardingConfiguration
        }

        public func validate(name: String) throws {
            try self.nodeGroupsToRemove?.forEach {
                try validate($0, name: "nodeGroupsToRemove[]", parent: name, max: 4)
                try validate($0, name: "nodeGroupsToRemove[]", parent: name, min: 1)
                try validate($0, name: "nodeGroupsToRemove[]", parent: name, pattern: "^\\d+$")
            }
            try self.nodeGroupsToRetain?.forEach {
                try validate($0, name: "nodeGroupsToRetain[]", parent: name, max: 4)
                try validate($0, name: "nodeGroupsToRetain[]", parent: name, min: 1)
                try validate($0, name: "nodeGroupsToRetain[]", parent: name, pattern: "^\\d+$")
            }
            try self.reshardingConfiguration?.forEach {
                try $0.validate(name: "\(name).reshardingConfiguration[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case applyImmediately = "ApplyImmediately"
            case nodeGroupCount = "NodeGroupCount"
            case nodeGroupsToRemove = "NodeGroupsToRemove"
            case nodeGroupsToRetain = "NodeGroupsToRetain"
            case replicationGroupId = "ReplicationGroupId"
            case reshardingConfiguration = "ReshardingConfiguration"
        }
    }

    public struct ModifyReplicationGroupShardConfigurationResult: AWSDecodableShape {
        public let replicationGroup: ReplicationGroup?

        @inlinable
        public init(replicationGroup: ReplicationGroup? = nil) {
            self.replicationGroup = replicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case replicationGroup = "ReplicationGroup"
        }
    }

    public struct ModifyServerlessCacheRequest: AWSEncodableShape {
        public struct _SecurityGroupIdsEncoding: ArrayCoderProperties { public static let member = "SecurityGroupId" }

        /// Modify the cache usage limit for the serverless cache.
        public let cacheUsageLimits: CacheUsageLimits?
        /// The daily time during which Elasticache begins taking a daily snapshot of the serverless cache.  Available for Valkey, Redis OSS and Serverless Memcached only. The default is NULL, i.e. the existing snapshot time configured for the cluster is not removed.
        public let dailySnapshotTime: String?
        /// User provided description for the serverless cache.  Default = NULL, i.e. the existing description is not removed/modified.  The description has a maximum length of 255 characters.
        public let description: String?
        /// Modifies the engine listed in a serverless cache request. The options are redis, memcached or valkey.
        public let engine: String?
        /// Modifies the engine vesion listed in a serverless cache request.
        public let majorEngineVersion: String?
        /// The identifier of the UserGroup to be removed from association with the Valkey and Redis OSS serverless cache.  Available for Valkey and Redis OSS only. Default is NULL.
        public let removeUserGroup: Bool?
        /// The new list of VPC security groups to be associated with the serverless cache.  Populating this list means the current VPC security groups will be removed.  This security group is used to authorize traffic access for the VPC end-point (private-link).  Default = NULL -  the existing list of VPC security groups is not removed.
        @OptionalCustomCoding<ArrayCoder<_SecurityGroupIdsEncoding, String>>
        public var securityGroupIds: [String]?
        /// User-provided identifier for the serverless cache to be modified.
        public let serverlessCacheName: String?
        /// The number of days for which Elasticache retains automatic snapshots before deleting them.  Available for Valkey, Redis OSS and Serverless Memcached only. Default = NULL, i.e. the existing snapshot-retention-limit will not be removed or modified.  The maximum value allowed is 35 days.
        public let snapshotRetentionLimit: Int?
        /// The identifier of the UserGroup to be associated with the serverless cache. Available for Valkey and Redis OSS only.  Default is NULL -  the existing UserGroup is not removed.
        public let userGroupId: String?

        @inlinable
        public init(cacheUsageLimits: CacheUsageLimits? = nil, dailySnapshotTime: String? = nil, description: String? = nil, engine: String? = nil, majorEngineVersion: String? = nil, removeUserGroup: Bool? = nil, securityGroupIds: [String]? = nil, serverlessCacheName: String? = nil, snapshotRetentionLimit: Int? = nil, userGroupId: String? = nil) {
            self.cacheUsageLimits = cacheUsageLimits
            self.dailySnapshotTime = dailySnapshotTime
            self.description = description
            self.engine = engine
            self.majorEngineVersion = majorEngineVersion
            self.removeUserGroup = removeUserGroup
            self.securityGroupIds = securityGroupIds
            self.serverlessCacheName = serverlessCacheName
            self.snapshotRetentionLimit = snapshotRetentionLimit
            self.userGroupId = userGroupId
        }

        private enum CodingKeys: String, CodingKey {
            case cacheUsageLimits = "CacheUsageLimits"
            case dailySnapshotTime = "DailySnapshotTime"
            case description = "Description"
            case engine = "Engine"
            case majorEngineVersion = "MajorEngineVersion"
            case removeUserGroup = "RemoveUserGroup"
            case securityGroupIds = "SecurityGroupIds"
            case serverlessCacheName = "ServerlessCacheName"
            case snapshotRetentionLimit = "SnapshotRetentionLimit"
            case userGroupId = "UserGroupId"
        }
    }

    public struct ModifyServerlessCacheResponse: AWSDecodableShape {
        /// The response for the attempt to modify the serverless cache.
        public let serverlessCache: ServerlessCache?

        @inlinable
        public init(serverlessCache: ServerlessCache? = nil) {
            self.serverlessCache = serverlessCache
        }

        private enum CodingKeys: String, CodingKey {
            case serverlessCache = "ServerlessCache"
        }
    }

    public struct ModifyUserGroupMessage: AWSEncodableShape {
        /// Modifies the engine listed in a user group. The options are valkey or redis.
        public let engine: String?
        /// The ID of the user group.
        public let userGroupId: String?
        /// The list of user IDs to add to the user group.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var userIdsToAdd: [String]?
        /// The list of user IDs to remove from the user group.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var userIdsToRemove: [String]?

        @inlinable
        public init(engine: String? = nil, userGroupId: String? = nil, userIdsToAdd: [String]? = nil, userIdsToRemove: [String]? = nil) {
            self.engine = engine
            self.userGroupId = userGroupId
            self.userIdsToAdd = userIdsToAdd
            self.userIdsToRemove = userIdsToRemove
        }

        public func validate(name: String) throws {
            try self.validate(self.engine, name: "engine", parent: name, pattern: "^[a-zA-Z]*$")
            try self.userIdsToAdd?.forEach {
                try validate($0, name: "userIdsToAdd[]", parent: name, min: 1)
                try validate($0, name: "userIdsToAdd[]", parent: name, pattern: "^[a-zA-Z][a-zA-Z0-9\\-]*$")
            }
            try self.validate(self.userIdsToAdd, name: "userIdsToAdd", parent: name, min: 1)
            try self.userIdsToRemove?.forEach {
                try validate($0, name: "userIdsToRemove[]", parent: name, min: 1)
                try validate($0, name: "userIdsToRemove[]", parent: name, pattern: "^[a-zA-Z][a-zA-Z0-9\\-]*$")
            }
            try self.validate(self.userIdsToRemove, name: "userIdsToRemove", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case engine = "Engine"
            case userGroupId = "UserGroupId"
            case userIdsToAdd = "UserIdsToAdd"
            case userIdsToRemove = "UserIdsToRemove"
        }
    }

    public struct ModifyUserMessage: AWSEncodableShape {
        /// Access permissions string used for this user.
        public let accessString: String?
        /// Adds additional user permissions to the access string.
        public let appendAccessString: String?
        /// Specifies how to authenticate the user.
        public let authenticationMode: AuthenticationMode?
        /// Modifies the engine listed for a user. The options are valkey or redis.
        public let engine: String?
        /// Indicates no password is required for the user.
        public let noPasswordRequired: Bool?
        /// The passwords belonging to the user. You are allowed up to two.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var passwords: [String]?
        /// The ID of the user.
        public let userId: String?

        @inlinable
        public init(accessString: String? = nil, appendAccessString: String? = nil, authenticationMode: AuthenticationMode? = nil, engine: String? = nil, noPasswordRequired: Bool? = nil, passwords: [String]? = nil, userId: String? = nil) {
            self.accessString = accessString
            self.appendAccessString = appendAccessString
            self.authenticationMode = authenticationMode
            self.engine = engine
            self.noPasswordRequired = noPasswordRequired
            self.passwords = passwords
            self.userId = userId
        }

        public func validate(name: String) throws {
            try self.validate(self.accessString, name: "accessString", parent: name, pattern: "\\S")
            try self.validate(self.appendAccessString, name: "appendAccessString", parent: name, pattern: "\\S")
            try self.authenticationMode?.validate(name: "\(name).authenticationMode")
            try self.validate(self.engine, name: "engine", parent: name, pattern: "^[a-zA-Z]*$")
            try self.validate(self.passwords, name: "passwords", parent: name, min: 1)
            try self.validate(self.userId, name: "userId", parent: name, min: 1)
            try self.validate(self.userId, name: "userId", parent: name, pattern: "^[a-zA-Z][a-zA-Z0-9\\-]*$")
        }

        private enum CodingKeys: String, CodingKey {
            case accessString = "AccessString"
            case appendAccessString = "AppendAccessString"
            case authenticationMode = "AuthenticationMode"
            case engine = "Engine"
            case noPasswordRequired = "NoPasswordRequired"
            case passwords = "Passwords"
            case userId = "UserId"
        }
    }

    public struct NodeGroup: AWSDecodableShape {
        public struct _NodeGroupMembersEncoding: ArrayCoderProperties { public static let member = "NodeGroupMember" }

        /// The identifier for the node group (shard). A Valkey or Redis OSS (cluster mode disabled) replication group contains only 1 node group; therefore, the node group ID is 0001. A Valkey or Redis OSS (cluster mode enabled) replication group contains 1 to 90 node groups numbered 0001 to 0090. Optionally, the user can provide the id for a node group.
        public let nodeGroupId: String?
        /// A list containing information about individual nodes within the node group (shard).
        @OptionalCustomCoding<ArrayCoder<_NodeGroupMembersEncoding, NodeGroupMember>>
        public var nodeGroupMembers: [NodeGroupMember]?
        /// The endpoint of the primary node in this node group (shard).
        public let primaryEndpoint: Endpoint?
        /// The endpoint of the replica nodes in this node group (shard). This value is read-only.
        public let readerEndpoint: Endpoint?
        /// The keyspace for this node group (shard).
        public let slots: String?
        /// The current state of this replication group - creating, available, modifying, deleting.
        public let status: String?

        @inlinable
        public init(nodeGroupId: String? = nil, nodeGroupMembers: [NodeGroupMember]? = nil, primaryEndpoint: Endpoint? = nil, readerEndpoint: Endpoint? = nil, slots: String? = nil, status: String? = nil) {
            self.nodeGroupId = nodeGroupId
            self.nodeGroupMembers = nodeGroupMembers
            self.primaryEndpoint = primaryEndpoint
            self.readerEndpoint = readerEndpoint
            self.slots = slots
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case nodeGroupId = "NodeGroupId"
            case nodeGroupMembers = "NodeGroupMembers"
            case primaryEndpoint = "PrimaryEndpoint"
            case readerEndpoint = "ReaderEndpoint"
            case slots = "Slots"
            case status = "Status"
        }
    }

    public struct NodeGroupConfiguration: AWSEncodableShape & AWSDecodableShape {
        public struct _ReplicaAvailabilityZonesEncoding: ArrayCoderProperties { public static let member = "AvailabilityZone" }
        public struct _ReplicaOutpostArnsEncoding: ArrayCoderProperties { public static let member = "OutpostArn" }

        /// Either the ElastiCache supplied 4-digit id or a user supplied id for the node group these configuration values apply to.
        public let nodeGroupId: String?
        /// The Availability Zone where the primary node of this node group (shard) is launched.
        public let primaryAvailabilityZone: String?
        /// The outpost ARN of the primary node.
        public let primaryOutpostArn: String?
        /// A list of Availability Zones to be used for the read replicas. The number of Availability Zones in this list must match the value of ReplicaCount or ReplicasPerNodeGroup if not specified.
        @OptionalCustomCoding<ArrayCoder<_ReplicaAvailabilityZonesEncoding, String>>
        public var replicaAvailabilityZones: [String]?
        /// The number of read replica nodes in this node group (shard).
        public let replicaCount: Int?
        /// The outpost ARN of the node replicas.
        @OptionalCustomCoding<ArrayCoder<_ReplicaOutpostArnsEncoding, String>>
        public var replicaOutpostArns: [String]?
        /// A string that specifies the keyspace for a particular node group. Keyspaces range from 0 to 16,383. The string is in the format startkey-endkey. Example: "0-3999"
        public let slots: String?

        @inlinable
        public init(nodeGroupId: String? = nil, primaryAvailabilityZone: String? = nil, primaryOutpostArn: String? = nil, replicaAvailabilityZones: [String]? = nil, replicaCount: Int? = nil, replicaOutpostArns: [String]? = nil, slots: String? = nil) {
            self.nodeGroupId = nodeGroupId
            self.primaryAvailabilityZone = primaryAvailabilityZone
            self.primaryOutpostArn = primaryOutpostArn
            self.replicaAvailabilityZones = replicaAvailabilityZones
            self.replicaCount = replicaCount
            self.replicaOutpostArns = replicaOutpostArns
            self.slots = slots
        }

        public func validate(name: String) throws {
            try self.validate(self.nodeGroupId, name: "nodeGroupId", parent: name, max: 4)
            try self.validate(self.nodeGroupId, name: "nodeGroupId", parent: name, min: 1)
            try self.validate(self.nodeGroupId, name: "nodeGroupId", parent: name, pattern: "^\\d+$")
        }

        private enum CodingKeys: String, CodingKey {
            case nodeGroupId = "NodeGroupId"
            case primaryAvailabilityZone = "PrimaryAvailabilityZone"
            case primaryOutpostArn = "PrimaryOutpostArn"
            case replicaAvailabilityZones = "ReplicaAvailabilityZones"
            case replicaCount = "ReplicaCount"
            case replicaOutpostArns = "ReplicaOutpostArns"
            case slots = "Slots"
        }
    }

    public struct NodeGroupMember: AWSDecodableShape {
        /// The ID of the cluster to which the node belongs.
        public let cacheClusterId: String?
        /// The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).
        public let cacheNodeId: String?
        /// The role that is currently assigned to the node - primary or replica. This member is only applicable for Valkey or Redis OSS (cluster mode disabled) replication groups.
        public let currentRole: String?
        /// The name of the Availability Zone in which the node is located.
        public let preferredAvailabilityZone: String?
        /// The outpost ARN of the node group member.
        public let preferredOutpostArn: String?
        /// The information required for client programs to connect to a node for read operations. The read endpoint is only applicable on Valkey or Redis OSS (cluster mode disabled) clusters.
        public let readEndpoint: Endpoint?

        @inlinable
        public init(cacheClusterId: String? = nil, cacheNodeId: String? = nil, currentRole: String? = nil, preferredAvailabilityZone: String? = nil, preferredOutpostArn: String? = nil, readEndpoint: Endpoint? = nil) {
            self.cacheClusterId = cacheClusterId
            self.cacheNodeId = cacheNodeId
            self.currentRole = currentRole
            self.preferredAvailabilityZone = preferredAvailabilityZone
            self.preferredOutpostArn = preferredOutpostArn
            self.readEndpoint = readEndpoint
        }

        private enum CodingKeys: String, CodingKey {
            case cacheClusterId = "CacheClusterId"
            case cacheNodeId = "CacheNodeId"
            case currentRole = "CurrentRole"
            case preferredAvailabilityZone = "PreferredAvailabilityZone"
            case preferredOutpostArn = "PreferredOutpostArn"
            case readEndpoint = "ReadEndpoint"
        }
    }

    public struct NodeGroupMemberUpdateStatus: AWSDecodableShape {
        /// The cache cluster ID
        public let cacheClusterId: String?
        /// The node ID of the cache cluster
        public let cacheNodeId: String?
        /// The deletion date of the node
        public let nodeDeletionDate: Date?
        /// The end date of the update for a node
        public let nodeUpdateEndDate: Date?
        /// Reflects whether the update was initiated by the customer or automatically applied
        public let nodeUpdateInitiatedBy: NodeUpdateInitiatedBy?
        /// The date when the update is triggered
        public let nodeUpdateInitiatedDate: Date?
        /// The start date of the update for a node
        public let nodeUpdateStartDate: Date?
        /// The update status of the node
        public let nodeUpdateStatus: NodeUpdateStatus?
        /// The date when the NodeUpdateStatus was last modified
        public let nodeUpdateStatusModifiedDate: Date?

        @inlinable
        public init(cacheClusterId: String? = nil, cacheNodeId: String? = nil, nodeDeletionDate: Date? = nil, nodeUpdateEndDate: Date? = nil, nodeUpdateInitiatedBy: NodeUpdateInitiatedBy? = nil, nodeUpdateInitiatedDate: Date? = nil, nodeUpdateStartDate: Date? = nil, nodeUpdateStatus: NodeUpdateStatus? = nil, nodeUpdateStatusModifiedDate: Date? = nil) {
            self.cacheClusterId = cacheClusterId
            self.cacheNodeId = cacheNodeId
            self.nodeDeletionDate = nodeDeletionDate
            self.nodeUpdateEndDate = nodeUpdateEndDate
            self.nodeUpdateInitiatedBy = nodeUpdateInitiatedBy
            self.nodeUpdateInitiatedDate = nodeUpdateInitiatedDate
            self.nodeUpdateStartDate = nodeUpdateStartDate
            self.nodeUpdateStatus = nodeUpdateStatus
            self.nodeUpdateStatusModifiedDate = nodeUpdateStatusModifiedDate
        }

        private enum CodingKeys: String, CodingKey {
            case cacheClusterId = "CacheClusterId"
            case cacheNodeId = "CacheNodeId"
            case nodeDeletionDate = "NodeDeletionDate"
            case nodeUpdateEndDate = "NodeUpdateEndDate"
            case nodeUpdateInitiatedBy = "NodeUpdateInitiatedBy"
            case nodeUpdateInitiatedDate = "NodeUpdateInitiatedDate"
            case nodeUpdateStartDate = "NodeUpdateStartDate"
            case nodeUpdateStatus = "NodeUpdateStatus"
            case nodeUpdateStatusModifiedDate = "NodeUpdateStatusModifiedDate"
        }
    }

    public struct NodeGroupUpdateStatus: AWSDecodableShape {
        public struct _NodeGroupMemberUpdateStatusEncoding: ArrayCoderProperties { public static let member = "NodeGroupMemberUpdateStatus" }

        /// The ID of the node group
        public let nodeGroupId: String?
        /// The status of the service update on the node group member
        @OptionalCustomCoding<ArrayCoder<_NodeGroupMemberUpdateStatusEncoding, NodeGroupMemberUpdateStatus>>
        public var nodeGroupMemberUpdateStatus: [NodeGroupMemberUpdateStatus]?

        @inlinable
        public init(nodeGroupId: String? = nil, nodeGroupMemberUpdateStatus: [NodeGroupMemberUpdateStatus]? = nil) {
            self.nodeGroupId = nodeGroupId
            self.nodeGroupMemberUpdateStatus = nodeGroupMemberUpdateStatus
        }

        private enum CodingKeys: String, CodingKey {
            case nodeGroupId = "NodeGroupId"
            case nodeGroupMemberUpdateStatus = "NodeGroupMemberUpdateStatus"
        }
    }

    public struct NodeSnapshot: AWSDecodableShape {
        /// A unique identifier for the source cluster.
        public let cacheClusterId: String?
        /// The date and time when the cache node was created in the source cluster.
        public let cacheNodeCreateTime: Date?
        /// The cache node identifier for the node in the source cluster.
        public let cacheNodeId: String?
        /// The size of the cache on the source cache node.
        public let cacheSize: String?
        /// The configuration for the source node group (shard).
        public let nodeGroupConfiguration: NodeGroupConfiguration?
        /// A unique identifier for the source node group (shard).
        public let nodeGroupId: String?
        /// The date and time when the source node's metadata and cache data set was obtained for the snapshot.
        public let snapshotCreateTime: Date?

        @inlinable
        public init(cacheClusterId: String? = nil, cacheNodeCreateTime: Date? = nil, cacheNodeId: String? = nil, cacheSize: String? = nil, nodeGroupConfiguration: NodeGroupConfiguration? = nil, nodeGroupId: String? = nil, snapshotCreateTime: Date? = nil) {
            self.cacheClusterId = cacheClusterId
            self.cacheNodeCreateTime = cacheNodeCreateTime
            self.cacheNodeId = cacheNodeId
            self.cacheSize = cacheSize
            self.nodeGroupConfiguration = nodeGroupConfiguration
            self.nodeGroupId = nodeGroupId
            self.snapshotCreateTime = snapshotCreateTime
        }

        private enum CodingKeys: String, CodingKey {
            case cacheClusterId = "CacheClusterId"
            case cacheNodeCreateTime = "CacheNodeCreateTime"
            case cacheNodeId = "CacheNodeId"
            case cacheSize = "CacheSize"
            case nodeGroupConfiguration = "NodeGroupConfiguration"
            case nodeGroupId = "NodeGroupId"
            case snapshotCreateTime = "SnapshotCreateTime"
        }
    }

    public struct NotificationConfiguration: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) that identifies the topic.
        public let topicArn: String?
        /// The current state of the topic.
        public let topicStatus: String?

        @inlinable
        public init(topicArn: String? = nil, topicStatus: String? = nil) {
            self.topicArn = topicArn
            self.topicStatus = topicStatus
        }

        private enum CodingKeys: String, CodingKey {
            case topicArn = "TopicArn"
            case topicStatus = "TopicStatus"
        }
    }

    public struct Parameter: AWSDecodableShape {
        /// The valid range of values for the parameter.
        public let allowedValues: String?
        /// Indicates whether a change to the parameter is applied immediately or requires a reboot for the change to be applied. You can force a reboot or wait until the next maintenance window's reboot. For more information, see Rebooting a Cluster.
        public let changeType: ChangeType?
        /// The valid data type for the parameter.
        public let dataType: String?
        /// A description of the parameter.
        public let description: String?
        /// Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
        public let isModifiable: Bool?
        /// The earliest cache engine version to which the parameter can apply.
        public let minimumEngineVersion: String?
        /// The name of the parameter.
        public let parameterName: String?
        /// The value of the parameter.
        public let parameterValue: String?
        /// The source of the parameter.
        public let source: String?

        @inlinable
        public init(allowedValues: String? = nil, changeType: ChangeType? = nil, dataType: String? = nil, description: String? = nil, isModifiable: Bool? = nil, minimumEngineVersion: String? = nil, parameterName: String? = nil, parameterValue: String? = nil, source: String? = nil) {
            self.allowedValues = allowedValues
            self.changeType = changeType
            self.dataType = dataType
            self.description = description
            self.isModifiable = isModifiable
            self.minimumEngineVersion = minimumEngineVersion
            self.parameterName = parameterName
            self.parameterValue = parameterValue
            self.source = source
        }

        private enum CodingKeys: String, CodingKey {
            case allowedValues = "AllowedValues"
            case changeType = "ChangeType"
            case dataType = "DataType"
            case description = "Description"
            case isModifiable = "IsModifiable"
            case minimumEngineVersion = "MinimumEngineVersion"
            case parameterName = "ParameterName"
            case parameterValue = "ParameterValue"
            case source = "Source"
        }
    }

    public struct ParameterNameValue: AWSEncodableShape {
        /// The name of the parameter.
        public let parameterName: String?
        /// The value of the parameter.
        public let parameterValue: String?

        @inlinable
        public init(parameterName: String? = nil, parameterValue: String? = nil) {
            self.parameterName = parameterName
            self.parameterValue = parameterValue
        }

        private enum CodingKeys: String, CodingKey {
            case parameterName = "ParameterName"
            case parameterValue = "ParameterValue"
        }
    }

    public struct PendingLogDeliveryConfiguration: AWSDecodableShape {
        /// Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
        public let destinationDetails: DestinationDetails?
        /// Returns the destination type, either CloudWatch Logs or Kinesis Data Firehose.
        public let destinationType: DestinationType?
        /// Returns the log format, either JSON or TEXT
        public let logFormat: LogFormat?
        /// Refers to slow-log or engine-log..
        public let logType: LogType?

        @inlinable
        public init(destinationDetails: DestinationDetails? = nil, destinationType: DestinationType? = nil, logFormat: LogFormat? = nil, logType: LogType? = nil) {
            self.destinationDetails = destinationDetails
            self.destinationType = destinationType
            self.logFormat = logFormat
            self.logType = logType
        }

        private enum CodingKeys: String, CodingKey {
            case destinationDetails = "DestinationDetails"
            case destinationType = "DestinationType"
            case logFormat = "LogFormat"
            case logType = "LogType"
        }
    }

    public struct PendingModifiedValues: AWSDecodableShape {
        public struct _CacheNodeIdsToRemoveEncoding: ArrayCoderProperties { public static let member = "CacheNodeId" }

        /// The auth token status
        public let authTokenStatus: AuthTokenUpdateStatus?
        /// A list of cache node IDs that are being removed (or will be removed) from the cluster. A node ID is a 4-digit numeric identifier (0001, 0002, etc.).
        @OptionalCustomCoding<ArrayCoder<_CacheNodeIdsToRemoveEncoding, String>>
        public var cacheNodeIdsToRemove: [String]?
        /// The cache node type that this cluster or replication group is scaled to.
        public let cacheNodeType: String?
        /// The new cache engine version that the cluster runs.
        public let engineVersion: String?
        /// The log delivery configurations being modified
        @OptionalCustomCoding<StandardArrayCoder<PendingLogDeliveryConfiguration>>
        public var logDeliveryConfigurations: [PendingLogDeliveryConfiguration]?
        /// The new number of cache nodes for the cluster. For clusters running Valkey or Redis OSS, this value must be 1. For clusters running Memcached, this value must be between 1 and 40.
        public let numCacheNodes: Int?
        /// The scaling configuration changes that are pending for the Memcached cluster.
        public let scaleConfig: ScaleConfig?
        /// A flag that enables in-transit encryption when set to true.
        public let transitEncryptionEnabled: Bool?
        /// A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.
        public let transitEncryptionMode: TransitEncryptionMode?

        @inlinable
        public init(authTokenStatus: AuthTokenUpdateStatus? = nil, cacheNodeIdsToRemove: [String]? = nil, cacheNodeType: String? = nil, engineVersion: String? = nil, logDeliveryConfigurations: [PendingLogDeliveryConfiguration]? = nil, numCacheNodes: Int? = nil, scaleConfig: ScaleConfig? = nil, transitEncryptionEnabled: Bool? = nil, transitEncryptionMode: TransitEncryptionMode? = nil) {
            self.authTokenStatus = authTokenStatus
            self.cacheNodeIdsToRemove = cacheNodeIdsToRemove
            self.cacheNodeType = cacheNodeType
            self.engineVersion = engineVersion
            self.logDeliveryConfigurations = logDeliveryConfigurations
            self.numCacheNodes = numCacheNodes
            self.scaleConfig = scaleConfig
            self.transitEncryptionEnabled = transitEncryptionEnabled
            self.transitEncryptionMode = transitEncryptionMode
        }

        private enum CodingKeys: String, CodingKey {
            case authTokenStatus = "AuthTokenStatus"
            case cacheNodeIdsToRemove = "CacheNodeIdsToRemove"
            case cacheNodeType = "CacheNodeType"
            case engineVersion = "EngineVersion"
            case logDeliveryConfigurations = "LogDeliveryConfigurations"
            case numCacheNodes = "NumCacheNodes"
            case scaleConfig = "ScaleConfig"
            case transitEncryptionEnabled = "TransitEncryptionEnabled"
            case transitEncryptionMode = "TransitEncryptionMode"
        }
    }

    public struct ProcessedUpdateAction: AWSDecodableShape {
        /// The ID of the cache cluster
        public let cacheClusterId: String?
        /// The ID of the replication group
        public let replicationGroupId: String?
        /// The unique ID of the service update
        public let serviceUpdateName: String?
        /// The status of the update action on the Valkey or Redis OSS cluster
        public let updateActionStatus: UpdateActionStatus?

        @inlinable
        public init(cacheClusterId: String? = nil, replicationGroupId: String? = nil, serviceUpdateName: String? = nil, updateActionStatus: UpdateActionStatus? = nil) {
            self.cacheClusterId = cacheClusterId
            self.replicationGroupId = replicationGroupId
            self.serviceUpdateName = serviceUpdateName
            self.updateActionStatus = updateActionStatus
        }

        private enum CodingKeys: String, CodingKey {
            case cacheClusterId = "CacheClusterId"
            case replicationGroupId = "ReplicationGroupId"
            case serviceUpdateName = "ServiceUpdateName"
            case updateActionStatus = "UpdateActionStatus"
        }
    }

    public struct PurchaseReservedCacheNodesOfferingMessage: AWSEncodableShape {
        public struct _TagsEncoding: ArrayCoderProperties { public static let member = "Tag" }

        /// The number of cache node instances to reserve. Default: 1
        public let cacheNodeCount: Int?
        /// A customer-specified identifier to track this reservation.  The Reserved Cache Node ID is an unique customer-specified identifier to track this reservation. If this parameter is not specified, ElastiCache automatically generates an identifier for the reservation.  Example: myreservationID
        public let reservedCacheNodeId: String?
        /// The ID of the reserved cache node offering to purchase. Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
        public let reservedCacheNodesOfferingId: String?
        /// A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
        @OptionalCustomCoding<ArrayCoder<_TagsEncoding, Tag>>
        public var tags: [Tag]?

        @inlinable
        public init(cacheNodeCount: Int? = nil, reservedCacheNodeId: String? = nil, reservedCacheNodesOfferingId: String? = nil, tags: [Tag]? = nil) {
            self.cacheNodeCount = cacheNodeCount
            self.reservedCacheNodeId = reservedCacheNodeId
            self.reservedCacheNodesOfferingId = reservedCacheNodesOfferingId
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case cacheNodeCount = "CacheNodeCount"
            case reservedCacheNodeId = "ReservedCacheNodeId"
            case reservedCacheNodesOfferingId = "ReservedCacheNodesOfferingId"
            case tags = "Tags"
        }
    }

    public struct PurchaseReservedCacheNodesOfferingResult: AWSDecodableShape {
        public let reservedCacheNode: ReservedCacheNode?

        @inlinable
        public init(reservedCacheNode: ReservedCacheNode? = nil) {
            self.reservedCacheNode = reservedCacheNode
        }

        private enum CodingKeys: String, CodingKey {
            case reservedCacheNode = "ReservedCacheNode"
        }
    }

    public struct RebalanceSlotsInGlobalReplicationGroupMessage: AWSEncodableShape {
        /// If True, redistribution is applied immediately.
        public let applyImmediately: Bool?
        /// The name of the Global datastore
        public let globalReplicationGroupId: String?

        @inlinable
        public init(applyImmediately: Bool? = nil, globalReplicationGroupId: String? = nil) {
            self.applyImmediately = applyImmediately
            self.globalReplicationGroupId = globalReplicationGroupId
        }

        private enum CodingKeys: String, CodingKey {
            case applyImmediately = "ApplyImmediately"
            case globalReplicationGroupId = "GlobalReplicationGroupId"
        }
    }

    public struct RebalanceSlotsInGlobalReplicationGroupResult: AWSDecodableShape {
        public let globalReplicationGroup: GlobalReplicationGroup?

        @inlinable
        public init(globalReplicationGroup: GlobalReplicationGroup? = nil) {
            self.globalReplicationGroup = globalReplicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case globalReplicationGroup = "GlobalReplicationGroup"
        }
    }

    public struct RebootCacheClusterMessage: AWSEncodableShape {
        public struct _CacheNodeIdsToRebootEncoding: ArrayCoderProperties { public static let member = "CacheNodeId" }

        /// The cluster identifier. This parameter is stored as a lowercase string.
        public let cacheClusterId: String?
        /// A list of cache node IDs to reboot. A node ID is a numeric identifier (0001, 0002, etc.). To reboot an entire cluster, specify all of the cache node IDs.
        @OptionalCustomCoding<ArrayCoder<_CacheNodeIdsToRebootEncoding, String>>
        public var cacheNodeIdsToReboot: [String]?

        @inlinable
        public init(cacheClusterId: String? = nil, cacheNodeIdsToReboot: [String]? = nil) {
            self.cacheClusterId = cacheClusterId
            self.cacheNodeIdsToReboot = cacheNodeIdsToReboot
        }

        private enum CodingKeys: String, CodingKey {
            case cacheClusterId = "CacheClusterId"
            case cacheNodeIdsToReboot = "CacheNodeIdsToReboot"
        }
    }

    public struct RebootCacheClusterResult: AWSDecodableShape {
        public let cacheCluster: CacheCluster?

        @inlinable
        public init(cacheCluster: CacheCluster? = nil) {
            self.cacheCluster = cacheCluster
        }

        private enum CodingKeys: String, CodingKey {
            case cacheCluster = "CacheCluster"
        }
    }

    public struct RecurringCharge: AWSDecodableShape {
        /// The monetary amount of the recurring charge.
        public let recurringChargeAmount: Double?
        /// The frequency of the recurring charge.
        public let recurringChargeFrequency: String?

        @inlinable
        public init(recurringChargeAmount: Double? = nil, recurringChargeFrequency: String? = nil) {
            self.recurringChargeAmount = recurringChargeAmount
            self.recurringChargeFrequency = recurringChargeFrequency
        }

        private enum CodingKeys: String, CodingKey {
            case recurringChargeAmount = "RecurringChargeAmount"
            case recurringChargeFrequency = "RecurringChargeFrequency"
        }
    }

    public struct RegionalConfiguration: AWSEncodableShape {
        public struct _ReshardingConfigurationEncoding: ArrayCoderProperties { public static let member = "ReshardingConfiguration" }

        /// The name of the secondary cluster
        public let replicationGroupId: String?
        /// The Amazon region where the cluster is stored
        public let replicationGroupRegion: String?
        /// A list of PreferredAvailabilityZones objects that specifies the configuration of a node group in the resharded cluster.
        @OptionalCustomCoding<ArrayCoder<_ReshardingConfigurationEncoding, ReshardingConfiguration>>
        public var reshardingConfiguration: [ReshardingConfiguration]?

        @inlinable
        public init(replicationGroupId: String? = nil, replicationGroupRegion: String? = nil, reshardingConfiguration: [ReshardingConfiguration]? = nil) {
            self.replicationGroupId = replicationGroupId
            self.replicationGroupRegion = replicationGroupRegion
            self.reshardingConfiguration = reshardingConfiguration
        }

        public func validate(name: String) throws {
            try self.reshardingConfiguration?.forEach {
                try $0.validate(name: "\(name).reshardingConfiguration[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case replicationGroupId = "ReplicationGroupId"
            case replicationGroupRegion = "ReplicationGroupRegion"
            case reshardingConfiguration = "ReshardingConfiguration"
        }
    }

    public struct RemoveTagsFromResourceMessage: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the resource from which you want the tags removed, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster or arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Service Namespaces.
        public let resourceName: String?
        /// A list of TagKeys identifying the tags you want removed from the named resource.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var tagKeys: [String]?

        @inlinable
        public init(resourceName: String? = nil, tagKeys: [String]? = nil) {
            self.resourceName = resourceName
            self.tagKeys = tagKeys
        }

        private enum CodingKeys: String, CodingKey {
            case resourceName = "ResourceName"
            case tagKeys = "TagKeys"
        }
    }

    public struct ReplicationGroup: AWSDecodableShape {
        public struct _LogDeliveryConfigurationsEncoding: ArrayCoderProperties { public static let member = "LogDeliveryConfiguration" }
        public struct _MemberClustersEncoding: ArrayCoderProperties { public static let member = "ClusterId" }
        public struct _MemberClustersOutpostArnsEncoding: ArrayCoderProperties { public static let member = "ReplicationGroupOutpostArn" }
        public struct _NodeGroupsEncoding: ArrayCoderProperties { public static let member = "NodeGroup" }

        /// The ARN (Amazon Resource Name) of the replication group.
        public let arn: String?
        /// A flag that enables encryption at-rest when set to true. You cannot modify the value of AtRestEncryptionEnabled after the cluster is created. To enable encryption at-rest on a cluster you must set AtRestEncryptionEnabled to true when you create a cluster.  Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version 3.2.6, 4.x or later. Default: false
        public let atRestEncryptionEnabled: Bool?
        /// A flag that enables using an AuthToken (password) when issuing Valkey or Redis OSS  commands. Default: false
        public let authTokenEnabled: Bool?
        /// The date the auth token was last modified
        public let authTokenLastModifiedDate: Date?
        /// Indicates the status of automatic failover for this Valkey or Redis OSS replication group.
        public let automaticFailover: AutomaticFailoverStatus?
        /// If you are running Valkey 7.2 and above, or Redis OSS engine version 6.0 and above, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
        public let autoMinorVersionUpgrade: Bool?
        /// The name of the compute and memory capacity node type for each node in the replication group.
        public let cacheNodeType: String?
        /// A flag indicating whether or not this replication group is cluster enabled; i.e., whether its data can be partitioned across multiple shards (API/CLI: node groups). Valid values: true | false
        public let clusterEnabled: Bool?
        /// Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Valkey or Redis OSS clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Valkey or Redis OSS  clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.
        public let clusterMode: ClusterMode?
        /// The configuration endpoint for this replication group. Use the configuration endpoint to connect to this replication group.
        public let configurationEndpoint: Endpoint?
        /// Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. For more information, see Data tiering.
        public let dataTiering: DataTieringStatus?
        /// The user supplied description of the replication group.
        public let description: String?
        /// The engine used in a replication group. The options are redis, memcached or valkey.
        public let engine: String?
        /// The name of the Global datastore and role of this replication group in the Global datastore.
        public let globalReplicationGroupInfo: GlobalReplicationGroupInfo?
        /// The network type you choose when modifying a cluster, either ipv4 | ipv6. IPv6 is supported for workloads using Valkey 7.2 and above, Redis OSS engine version 6.2 to 7.1 or Memcached engine version 1.6.6 and above on all instances built on the Nitro system.
        public let ipDiscovery: IpDiscovery?
        /// The ID of the KMS key used to encrypt the disk in the cluster.
        public let kmsKeyId: String?
        /// Returns the destination, format and type of the logs.
        @OptionalCustomCoding<ArrayCoder<_LogDeliveryConfigurationsEncoding, LogDeliveryConfiguration>>
        public var logDeliveryConfigurations: [LogDeliveryConfiguration]?
        /// The names of all the cache clusters that are part of this replication group.
        @OptionalCustomCoding<ArrayCoder<_MemberClustersEncoding, String>>
        public var memberClusters: [String]?
        /// The outpost ARNs of the replication group's member clusters.
        @OptionalCustomCoding<ArrayCoder<_MemberClustersOutpostArnsEncoding, String>>
        public var memberClustersOutpostArns: [String]?
        /// A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For more information, see Minimizing Downtime: Multi-AZ
        public let multiAZ: MultiAZStatus?
        /// Must be either ipv4 | ipv6 | dual_stack. IPv6 is supported for workloads using Valkey 7.2 and above, Redis OSS engine version 6.2 to 7.1 or Memcached engine version 1.6.6 and above on all instances built on the Nitro system.
        public let networkType: NetworkType?
        /// A list of node groups in this replication group. For Valkey or Redis OSS (cluster mode disabled) replication groups, this is a single-element list. For Valkey or Redis OSS (cluster mode enabled) replication groups, the list contains an entry for each node group (shard).
        @OptionalCustomCoding<ArrayCoder<_NodeGroupsEncoding, NodeGroup>>
        public var nodeGroups: [NodeGroup]?
        /// A group of settings to be applied to the replication group, either immediately or during the next maintenance window.
        public let pendingModifiedValues: ReplicationGroupPendingModifiedValues?
        /// The date and time when the cluster was created.
        public let replicationGroupCreateTime: Date?
        /// The identifier for the replication group.
        public let replicationGroupId: String?
        /// The number of days for which ElastiCache retains automatic cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.  If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.
        public let snapshotRetentionLimit: Int?
        /// The cluster ID that is used as the daily snapshot source for the replication group.
        public let snapshottingClusterId: String?
        /// The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard). Example: 05:00-09:00  If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.  This parameter is only valid if the Engine parameter is redis.
        public let snapshotWindow: String?
        /// The current state of this replication group - creating, available, modifying, deleting, create-failed, snapshotting.
        public let status: String?
        /// A flag that enables in-transit encryption when set to true.  Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version 3.2.6, 4.x or later. Default: false
        public let transitEncryptionEnabled: Bool?
        /// A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.
        public let transitEncryptionMode: TransitEncryptionMode?
        /// The ID of the user group associated to the replication group.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var userGroupIds: [String]?

        @inlinable
        public init(arn: String? = nil, atRestEncryptionEnabled: Bool? = nil, authTokenEnabled: Bool? = nil, authTokenLastModifiedDate: Date? = nil, automaticFailover: AutomaticFailoverStatus? = nil, autoMinorVersionUpgrade: Bool? = nil, cacheNodeType: String? = nil, clusterEnabled: Bool? = nil, clusterMode: ClusterMode? = nil, configurationEndpoint: Endpoint? = nil, dataTiering: DataTieringStatus? = nil, description: String? = nil, engine: String? = nil, globalReplicationGroupInfo: GlobalReplicationGroupInfo? = nil, ipDiscovery: IpDiscovery? = nil, kmsKeyId: String? = nil, logDeliveryConfigurations: [LogDeliveryConfiguration]? = nil, memberClusters: [String]? = nil, memberClustersOutpostArns: [String]? = nil, multiAZ: MultiAZStatus? = nil, networkType: NetworkType? = nil, nodeGroups: [NodeGroup]? = nil, pendingModifiedValues: ReplicationGroupPendingModifiedValues? = nil, replicationGroupCreateTime: Date? = nil, replicationGroupId: String? = nil, snapshotRetentionLimit: Int? = nil, snapshottingClusterId: String? = nil, snapshotWindow: String? = nil, status: String? = nil, transitEncryptionEnabled: Bool? = nil, transitEncryptionMode: TransitEncryptionMode? = nil, userGroupIds: [String]? = nil) {
            self.arn = arn
            self.atRestEncryptionEnabled = atRestEncryptionEnabled
            self.authTokenEnabled = authTokenEnabled
            self.authTokenLastModifiedDate = authTokenLastModifiedDate
            self.automaticFailover = automaticFailover
            self.autoMinorVersionUpgrade = autoMinorVersionUpgrade
            self.cacheNodeType = cacheNodeType
            self.clusterEnabled = clusterEnabled
            self.clusterMode = clusterMode
            self.configurationEndpoint = configurationEndpoint
            self.dataTiering = dataTiering
            self.description = description
            self.engine = engine
            self.globalReplicationGroupInfo = globalReplicationGroupInfo
            self.ipDiscovery = ipDiscovery
            self.kmsKeyId = kmsKeyId
            self.logDeliveryConfigurations = logDeliveryConfigurations
            self.memberClusters = memberClusters
            self.memberClustersOutpostArns = memberClustersOutpostArns
            self.multiAZ = multiAZ
            self.networkType = networkType
            self.nodeGroups = nodeGroups
            self.pendingModifiedValues = pendingModifiedValues
            self.replicationGroupCreateTime = replicationGroupCreateTime
            self.replicationGroupId = replicationGroupId
            self.snapshotRetentionLimit = snapshotRetentionLimit
            self.snapshottingClusterId = snapshottingClusterId
            self.snapshotWindow = snapshotWindow
            self.status = status
            self.transitEncryptionEnabled = transitEncryptionEnabled
            self.transitEncryptionMode = transitEncryptionMode
            self.userGroupIds = userGroupIds
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case atRestEncryptionEnabled = "AtRestEncryptionEnabled"
            case authTokenEnabled = "AuthTokenEnabled"
            case authTokenLastModifiedDate = "AuthTokenLastModifiedDate"
            case automaticFailover = "AutomaticFailover"
            case autoMinorVersionUpgrade = "AutoMinorVersionUpgrade"
            case cacheNodeType = "CacheNodeType"
            case clusterEnabled = "ClusterEnabled"
            case clusterMode = "ClusterMode"
            case configurationEndpoint = "ConfigurationEndpoint"
            case dataTiering = "DataTiering"
            case description = "Description"
            case engine = "Engine"
            case globalReplicationGroupInfo = "GlobalReplicationGroupInfo"
            case ipDiscovery = "IpDiscovery"
            case kmsKeyId = "KmsKeyId"
            case logDeliveryConfigurations = "LogDeliveryConfigurations"
            case memberClusters = "MemberClusters"
            case memberClustersOutpostArns = "MemberClustersOutpostArns"
            case multiAZ = "MultiAZ"
            case networkType = "NetworkType"
            case nodeGroups = "NodeGroups"
            case pendingModifiedValues = "PendingModifiedValues"
            case replicationGroupCreateTime = "ReplicationGroupCreateTime"
            case replicationGroupId = "ReplicationGroupId"
            case snapshotRetentionLimit = "SnapshotRetentionLimit"
            case snapshottingClusterId = "SnapshottingClusterId"
            case snapshotWindow = "SnapshotWindow"
            case status = "Status"
            case transitEncryptionEnabled = "TransitEncryptionEnabled"
            case transitEncryptionMode = "TransitEncryptionMode"
            case userGroupIds = "UserGroupIds"
        }
    }

    public struct ReplicationGroupMessage: AWSDecodableShape {
        public struct _ReplicationGroupsEncoding: ArrayCoderProperties { public static let member = "ReplicationGroup" }

        /// Provides an identifier to allow retrieval of paginated results.
        public let marker: String?
        /// A list of replication groups. Each item in the list contains detailed information about one replication group.
        @OptionalCustomCoding<ArrayCoder<_ReplicationGroupsEncoding, ReplicationGroup>>
        public var replicationGroups: [ReplicationGroup]?

        @inlinable
        public init(marker: String? = nil, replicationGroups: [ReplicationGroup]? = nil) {
            self.marker = marker
            self.replicationGroups = replicationGroups
        }

        private enum CodingKeys: String, CodingKey {
            case marker = "Marker"
            case replicationGroups = "ReplicationGroups"
        }
    }

    public struct ReplicationGroupPendingModifiedValues: AWSDecodableShape {
        /// The auth token status
        public let authTokenStatus: AuthTokenUpdateStatus?
        /// Indicates the status of automatic failover for this Valkey or Redis OSS replication group.
        public let automaticFailoverStatus: PendingAutomaticFailoverStatus?
        /// Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Valkey or Redis OSS clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Valkey or Redis OSS clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.
        public let clusterMode: ClusterMode?
        /// The log delivery configurations being modified
        @OptionalCustomCoding<StandardArrayCoder<PendingLogDeliveryConfiguration>>
        public var logDeliveryConfigurations: [PendingLogDeliveryConfiguration]?
        /// The primary cluster ID that is applied immediately (if --apply-immediately was specified), or during the next maintenance window.
        public let primaryClusterId: String?
        /// The status of an online resharding operation.
        public let resharding: ReshardingStatus?
        /// A flag that enables in-transit encryption when set to true.
        public let transitEncryptionEnabled: Bool?
        /// A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.
        public let transitEncryptionMode: TransitEncryptionMode?
        /// The user group being modified.
        public let userGroups: UserGroupsUpdateStatus?

        @inlinable
        public init(authTokenStatus: AuthTokenUpdateStatus? = nil, automaticFailoverStatus: PendingAutomaticFailoverStatus? = nil, clusterMode: ClusterMode? = nil, logDeliveryConfigurations: [PendingLogDeliveryConfiguration]? = nil, primaryClusterId: String? = nil, resharding: ReshardingStatus? = nil, transitEncryptionEnabled: Bool? = nil, transitEncryptionMode: TransitEncryptionMode? = nil, userGroups: UserGroupsUpdateStatus? = nil) {
            self.authTokenStatus = authTokenStatus
            self.automaticFailoverStatus = automaticFailoverStatus
            self.clusterMode = clusterMode
            self.logDeliveryConfigurations = logDeliveryConfigurations
            self.primaryClusterId = primaryClusterId
            self.resharding = resharding
            self.transitEncryptionEnabled = transitEncryptionEnabled
            self.transitEncryptionMode = transitEncryptionMode
            self.userGroups = userGroups
        }

        private enum CodingKeys: String, CodingKey {
            case authTokenStatus = "AuthTokenStatus"
            case automaticFailoverStatus = "AutomaticFailoverStatus"
            case clusterMode = "ClusterMode"
            case logDeliveryConfigurations = "LogDeliveryConfigurations"
            case primaryClusterId = "PrimaryClusterId"
            case resharding = "Resharding"
            case transitEncryptionEnabled = "TransitEncryptionEnabled"
            case transitEncryptionMode = "TransitEncryptionMode"
            case userGroups = "UserGroups"
        }
    }

    public struct ReservedCacheNode: AWSDecodableShape {
        public struct _RecurringChargesEncoding: ArrayCoderProperties { public static let member = "RecurringCharge" }

        /// The number of cache nodes that have been reserved.
        public let cacheNodeCount: Int?
        /// The cache node type for the reserved cache nodes. The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.   General purpose:   Current generation:   M7g node types: 					cache.m7g.large, 					cache.m7g.xlarge, 					cache.m7g.2xlarge, 					cache.m7g.4xlarge, 					cache.m7g.8xlarge, 					cache.m7g.12xlarge, 					cache.m7g.16xlarge   For region availability, see Supported Node Types    M6g node types (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
        ///
        /// 					 	cache.m6g.large,
        /// 							cache.m6g.xlarge,
        /// 							cache.m6g.2xlarge,
        /// 							cache.m6g.4xlarge,
        /// 							cache.m6g.8xlarge,
        /// 							cache.m6g.12xlarge,
        /// 							cache.m6g.16xlarge   M5 node types: cache.m5.large, 						cache.m5.xlarge, 						cache.m5.2xlarge, 						cache.m5.4xlarge, 						cache.m5.12xlarge, 						cache.m5.24xlarge   M4 node types: cache.m4.large, 						cache.m4.xlarge, 						cache.m4.2xlarge, 						cache.m4.4xlarge, 						cache.m4.10xlarge   T4g node types (available only for Redis OSS engine version 5.0.6 onward and Memcached engine version 1.5.16 onward):
        /// 					        cache.t4g.micro,
        /// 					        cache.t4g.small,
        /// 					        cache.t4g.medium   T3 node types: cache.t3.micro,  						cache.t3.small, 						cache.t3.medium   T2 node types: cache.t2.micro,  						cache.t2.small, 						cache.t2.medium    Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  T1 node types: cache.t1.micro   M1 node types: cache.m1.small,
        /// 						   cache.m1.medium,
        /// 						   cache.m1.large,
        /// 						   cache.m1.xlarge   M3 node types: cache.m3.medium, 						cache.m3.large,  						cache.m3.xlarge, 						cache.m3.2xlarge      Compute optimized:   Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  C1 node types: cache.c1.xlarge      Memory optimized:   Current generation:   R7g node types:
        /// 							cache.r7g.large,
        /// 							cache.r7g.xlarge,
        /// 							cache.r7g.2xlarge,
        /// 							cache.r7g.4xlarge,
        /// 							cache.r7g.8xlarge,
        /// 							cache.r7g.12xlarge,
        /// 							cache.r7g.16xlarge   For region availability, see Supported Node Types    R6g node types (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
        /// 							cache.r6g.large,
        /// 							cache.r6g.xlarge,
        /// 							cache.r6g.2xlarge,
        /// 							cache.r6g.4xlarge,
        /// 							cache.r6g.8xlarge,
        /// 							cache.r6g.12xlarge,
        /// 							cache.r6g.16xlarge   R5 node types: cache.r5.large, 					   cache.r5.xlarge, 					   cache.r5.2xlarge, 					   cache.r5.4xlarge, 					   cache.r5.12xlarge, 					   cache.r5.24xlarge   R4 node types: cache.r4.large, 					   cache.r4.xlarge, 					   cache.r4.2xlarge, 					   cache.r4.4xlarge, 					   cache.r4.8xlarge, 					   cache.r4.16xlarge    Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  M2 node types: cache.m2.xlarge,  						cache.m2.2xlarge, 						cache.m2.4xlarge   R3 node types: cache.r3.large,  						cache.r3.xlarge, 						cache.r3.2xlarge,   						cache.r3.4xlarge, 						cache.r3.8xlarge       Additional node type info    All current generation instance types are created in Amazon VPC by default.   Valkey or Redis OSS append-only files (AOF) are not supported for T1 or T2 instances.   Valkey or Redis OSS Multi-AZ with automatic failover is not supported on T1 instances.   The configuration variables appendonly and appendfsync are not supported on Valkey, or on Redis OSS version 2.8.22 and later.
        public let cacheNodeType: String?
        /// The duration of the reservation in seconds.
        public let duration: Int?
        /// The fixed price charged for this reserved cache node.
        public let fixedPrice: Double?
        /// The offering type of this reserved cache node.
        public let offeringType: String?
        /// The description of the reserved cache node.
        public let productDescription: String?
        /// The recurring price charged to run this reserved cache node.
        @OptionalCustomCoding<ArrayCoder<_RecurringChargesEncoding, RecurringCharge>>
        public var recurringCharges: [RecurringCharge]?
        /// The Amazon Resource Name (ARN) of the reserved cache node. Example: arn:aws:elasticache:us-east-1:123456789012:reserved-instance:ri-2017-03-27-08-33-25-582
        public let reservationARN: String?
        /// The unique identifier for the reservation.
        public let reservedCacheNodeId: String?
        /// The offering identifier.
        public let reservedCacheNodesOfferingId: String?
        /// The time the reservation started.
        public let startTime: Date?
        /// The state of the reserved cache node.
        public let state: String?
        /// The hourly price charged for this reserved cache node.
        public let usagePrice: Double?

        @inlinable
        public init(cacheNodeCount: Int? = nil, cacheNodeType: String? = nil, duration: Int? = nil, fixedPrice: Double? = nil, offeringType: String? = nil, productDescription: String? = nil, recurringCharges: [RecurringCharge]? = nil, reservationARN: String? = nil, reservedCacheNodeId: String? = nil, reservedCacheNodesOfferingId: String? = nil, startTime: Date? = nil, state: String? = nil, usagePrice: Double? = nil) {
            self.cacheNodeCount = cacheNodeCount
            self.cacheNodeType = cacheNodeType
            self.duration = duration
            self.fixedPrice = fixedPrice
            self.offeringType = offeringType
            self.productDescription = productDescription
            self.recurringCharges = recurringCharges
            self.reservationARN = reservationARN
            self.reservedCacheNodeId = reservedCacheNodeId
            self.reservedCacheNodesOfferingId = reservedCacheNodesOfferingId
            self.startTime = startTime
            self.state = state
            self.usagePrice = usagePrice
        }

        private enum CodingKeys: String, CodingKey {
            case cacheNodeCount = "CacheNodeCount"
            case cacheNodeType = "CacheNodeType"
            case duration = "Duration"
            case fixedPrice = "FixedPrice"
            case offeringType = "OfferingType"
            case productDescription = "ProductDescription"
            case recurringCharges = "RecurringCharges"
            case reservationARN = "ReservationARN"
            case reservedCacheNodeId = "ReservedCacheNodeId"
            case reservedCacheNodesOfferingId = "ReservedCacheNodesOfferingId"
            case startTime = "StartTime"
            case state = "State"
            case usagePrice = "UsagePrice"
        }
    }

    public struct ReservedCacheNodeMessage: AWSDecodableShape {
        public struct _ReservedCacheNodesEncoding: ArrayCoderProperties { public static let member = "ReservedCacheNode" }

        /// Provides an identifier to allow retrieval of paginated results.
        public let marker: String?
        /// A list of reserved cache nodes. Each element in the list contains detailed information about one node.
        @OptionalCustomCoding<ArrayCoder<_ReservedCacheNodesEncoding, ReservedCacheNode>>
        public var reservedCacheNodes: [ReservedCacheNode]?

        @inlinable
        public init(marker: String? = nil, reservedCacheNodes: [ReservedCacheNode]? = nil) {
            self.marker = marker
            self.reservedCacheNodes = reservedCacheNodes
        }

        private enum CodingKeys: String, CodingKey {
            case marker = "Marker"
            case reservedCacheNodes = "ReservedCacheNodes"
        }
    }

    public struct ReservedCacheNodesOffering: AWSDecodableShape {
        public struct _RecurringChargesEncoding: ArrayCoderProperties { public static let member = "RecurringCharge" }

        /// The cache node type for the reserved cache node. The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.   General purpose:   Current generation:   M7g node types: 					cache.m7g.large, 					cache.m7g.xlarge, 					cache.m7g.2xlarge, 					cache.m7g.4xlarge, 					cache.m7g.8xlarge, 					cache.m7g.12xlarge, 					cache.m7g.16xlarge   For region availability, see Supported Node Types    M6g node types (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
        ///
        /// 					 	cache.m6g.large,
        /// 							cache.m6g.xlarge,
        /// 							cache.m6g.2xlarge,
        /// 							cache.m6g.4xlarge,
        /// 							cache.m6g.8xlarge,
        /// 							cache.m6g.12xlarge,
        /// 							cache.m6g.16xlarge   M5 node types: cache.m5.large, 						cache.m5.xlarge, 						cache.m5.2xlarge, 						cache.m5.4xlarge, 						cache.m5.12xlarge, 						cache.m5.24xlarge   M4 node types: cache.m4.large, 						cache.m4.xlarge, 						cache.m4.2xlarge, 						cache.m4.4xlarge, 						cache.m4.10xlarge   T4g node types (available only for Redis OSS engine version 5.0.6 onward and Memcached engine version 1.5.16 onward):
        /// 					        cache.t4g.micro,
        /// 					        cache.t4g.small,
        /// 					        cache.t4g.medium   T3 node types: cache.t3.micro,  						cache.t3.small, 						cache.t3.medium   T2 node types: cache.t2.micro,  						cache.t2.small, 						cache.t2.medium    Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  T1 node types: cache.t1.micro   M1 node types: cache.m1.small,
        /// 						   cache.m1.medium,
        /// 						   cache.m1.large,
        /// 						   cache.m1.xlarge   M3 node types: cache.m3.medium, 						cache.m3.large,  						cache.m3.xlarge, 						cache.m3.2xlarge      Compute optimized:   Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  C1 node types: cache.c1.xlarge      Memory optimized:   Current generation:   R7g node types:
        /// 							cache.r7g.large,
        /// 							cache.r7g.xlarge,
        /// 							cache.r7g.2xlarge,
        /// 							cache.r7g.4xlarge,
        /// 							cache.r7g.8xlarge,
        /// 							cache.r7g.12xlarge,
        /// 							cache.r7g.16xlarge   For region availability, see Supported Node Types    R6g node types (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
        /// 							cache.r6g.large,
        /// 							cache.r6g.xlarge,
        /// 							cache.r6g.2xlarge,
        /// 							cache.r6g.4xlarge,
        /// 							cache.r6g.8xlarge,
        /// 							cache.r6g.12xlarge,
        /// 							cache.r6g.16xlarge   R5 node types: cache.r5.large, 					   cache.r5.xlarge, 					   cache.r5.2xlarge, 					   cache.r5.4xlarge, 					   cache.r5.12xlarge, 					   cache.r5.24xlarge   R4 node types: cache.r4.large, 					   cache.r4.xlarge, 					   cache.r4.2xlarge, 					   cache.r4.4xlarge, 					   cache.r4.8xlarge, 					   cache.r4.16xlarge    Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  M2 node types: cache.m2.xlarge,  						cache.m2.2xlarge, 						cache.m2.4xlarge   R3 node types: cache.r3.large,  						cache.r3.xlarge, 						cache.r3.2xlarge,   						cache.r3.4xlarge, 						cache.r3.8xlarge       Additional node type info    All current generation instance types are created in Amazon VPC by default.   Valkey or Redis OSS append-only files (AOF) are not supported for T1 or T2 instances.   Valkey or Redis OSS Multi-AZ with automatic failover is not supported on T1 instances.   The configuration variables appendonly and appendfsync are not supported on Valkey, or on Redis OSS version 2.8.22 and later.
        public let cacheNodeType: String?
        /// The duration of the offering. in seconds.
        public let duration: Int?
        /// The fixed price charged for this offering.
        public let fixedPrice: Double?
        /// The offering type.
        public let offeringType: String?
        /// The cache engine used by the offering.
        public let productDescription: String?
        /// The recurring price charged to run this reserved cache node.
        @OptionalCustomCoding<ArrayCoder<_RecurringChargesEncoding, RecurringCharge>>
        public var recurringCharges: [RecurringCharge]?
        /// A unique identifier for the reserved cache node offering.
        public let reservedCacheNodesOfferingId: String?
        /// The hourly price charged for this offering.
        public let usagePrice: Double?

        @inlinable
        public init(cacheNodeType: String? = nil, duration: Int? = nil, fixedPrice: Double? = nil, offeringType: String? = nil, productDescription: String? = nil, recurringCharges: [RecurringCharge]? = nil, reservedCacheNodesOfferingId: String? = nil, usagePrice: Double? = nil) {
            self.cacheNodeType = cacheNodeType
            self.duration = duration
            self.fixedPrice = fixedPrice
            self.offeringType = offeringType
            self.productDescription = productDescription
            self.recurringCharges = recurringCharges
            self.reservedCacheNodesOfferingId = reservedCacheNodesOfferingId
            self.usagePrice = usagePrice
        }

        private enum CodingKeys: String, CodingKey {
            case cacheNodeType = "CacheNodeType"
            case duration = "Duration"
            case fixedPrice = "FixedPrice"
            case offeringType = "OfferingType"
            case productDescription = "ProductDescription"
            case recurringCharges = "RecurringCharges"
            case reservedCacheNodesOfferingId = "ReservedCacheNodesOfferingId"
            case usagePrice = "UsagePrice"
        }
    }

    public struct ReservedCacheNodesOfferingMessage: AWSDecodableShape {
        public struct _ReservedCacheNodesOfferingsEncoding: ArrayCoderProperties { public static let member = "ReservedCacheNodesOffering" }

        /// Provides an identifier to allow retrieval of paginated results.
        public let marker: String?
        /// A list of reserved cache node offerings. Each element in the list contains detailed information about one offering.
        @OptionalCustomCoding<ArrayCoder<_ReservedCacheNodesOfferingsEncoding, ReservedCacheNodesOffering>>
        public var reservedCacheNodesOfferings: [ReservedCacheNodesOffering]?

        @inlinable
        public init(marker: String? = nil, reservedCacheNodesOfferings: [ReservedCacheNodesOffering]? = nil) {
            self.marker = marker
            self.reservedCacheNodesOfferings = reservedCacheNodesOfferings
        }

        private enum CodingKeys: String, CodingKey {
            case marker = "Marker"
            case reservedCacheNodesOfferings = "ReservedCacheNodesOfferings"
        }
    }

    public struct ResetCacheParameterGroupMessage: AWSEncodableShape {
        public struct _ParameterNameValuesEncoding: ArrayCoderProperties { public static let member = "ParameterNameValue" }

        /// The name of the cache parameter group to reset.
        public let cacheParameterGroupName: String?
        /// An array of parameter names to reset to their default values. If ResetAllParameters is true, do not use ParameterNameValues. If ResetAllParameters is false, you must specify the name of at least one parameter to reset.
        @OptionalCustomCoding<ArrayCoder<_ParameterNameValuesEncoding, ParameterNameValue>>
        public var parameterNameValues: [ParameterNameValue]?
        /// If true, all parameters in the cache parameter group are reset to their default values. If false, only the parameters listed by ParameterNameValues are reset to their default values. Valid values: true | false
        public let resetAllParameters: Bool?

        @inlinable
        public init(cacheParameterGroupName: String? = nil, parameterNameValues: [ParameterNameValue]? = nil, resetAllParameters: Bool? = nil) {
            self.cacheParameterGroupName = cacheParameterGroupName
            self.parameterNameValues = parameterNameValues
            self.resetAllParameters = resetAllParameters
        }

        private enum CodingKeys: String, CodingKey {
            case cacheParameterGroupName = "CacheParameterGroupName"
            case parameterNameValues = "ParameterNameValues"
            case resetAllParameters = "ResetAllParameters"
        }
    }

    public struct ReshardingConfiguration: AWSEncodableShape {
        public struct _PreferredAvailabilityZonesEncoding: ArrayCoderProperties { public static let member = "AvailabilityZone" }

        /// Either the ElastiCache supplied 4-digit id or a user supplied id for the node group these configuration values apply to.
        public let nodeGroupId: String?
        /// A list of preferred availability zones for the nodes in this cluster.
        @OptionalCustomCoding<ArrayCoder<_PreferredAvailabilityZonesEncoding, String>>
        public var preferredAvailabilityZones: [String]?

        @inlinable
        public init(nodeGroupId: String? = nil, preferredAvailabilityZones: [String]? = nil) {
            self.nodeGroupId = nodeGroupId
            self.preferredAvailabilityZones = preferredAvailabilityZones
        }

        public func validate(name: String) throws {
            try self.validate(self.nodeGroupId, name: "nodeGroupId", parent: name, max: 4)
            try self.validate(self.nodeGroupId, name: "nodeGroupId", parent: name, min: 1)
            try self.validate(self.nodeGroupId, name: "nodeGroupId", parent: name, pattern: "^\\d+$")
        }

        private enum CodingKeys: String, CodingKey {
            case nodeGroupId = "NodeGroupId"
            case preferredAvailabilityZones = "PreferredAvailabilityZones"
        }
    }

    public struct ReshardingStatus: AWSDecodableShape {
        /// Represents the progress of an online resharding operation.
        public let slotMigration: SlotMigration?

        @inlinable
        public init(slotMigration: SlotMigration? = nil) {
            self.slotMigration = slotMigration
        }

        private enum CodingKeys: String, CodingKey {
            case slotMigration = "SlotMigration"
        }
    }

    public struct RevokeCacheSecurityGroupIngressMessage: AWSEncodableShape {
        /// The name of the cache security group to revoke ingress from.
        public let cacheSecurityGroupName: String?
        /// The name of the Amazon EC2 security group to revoke access from.
        public let ec2SecurityGroupName: String?
        /// The Amazon account number of the Amazon EC2 security group owner. Note that this is not the same thing as an Amazon access key ID - you must provide a valid Amazon account number for this parameter.
        public let ec2SecurityGroupOwnerId: String?

        @inlinable
        public init(cacheSecurityGroupName: String? = nil, ec2SecurityGroupName: String? = nil, ec2SecurityGroupOwnerId: String? = nil) {
            self.cacheSecurityGroupName = cacheSecurityGroupName
            self.ec2SecurityGroupName = ec2SecurityGroupName
            self.ec2SecurityGroupOwnerId = ec2SecurityGroupOwnerId
        }

        private enum CodingKeys: String, CodingKey {
            case cacheSecurityGroupName = "CacheSecurityGroupName"
            case ec2SecurityGroupName = "EC2SecurityGroupName"
            case ec2SecurityGroupOwnerId = "EC2SecurityGroupOwnerId"
        }
    }

    public struct RevokeCacheSecurityGroupIngressResult: AWSDecodableShape {
        public let cacheSecurityGroup: CacheSecurityGroup?

        @inlinable
        public init(cacheSecurityGroup: CacheSecurityGroup? = nil) {
            self.cacheSecurityGroup = cacheSecurityGroup
        }

        private enum CodingKeys: String, CodingKey {
            case cacheSecurityGroup = "CacheSecurityGroup"
        }
    }

    public struct ScaleConfig: AWSEncodableShape & AWSDecodableShape {
        /// The time interval in seconds between scaling operations when performing gradual scaling for a Memcached cluster.
        public let scaleIntervalMinutes: Int?
        /// The percentage by which to scale the Memcached cluster, either horizontally by adding nodes or vertically by increasing resources.
        public let scalePercentage: Int?

        @inlinable
        public init(scaleIntervalMinutes: Int? = nil, scalePercentage: Int? = nil) {
            self.scaleIntervalMinutes = scaleIntervalMinutes
            self.scalePercentage = scalePercentage
        }

        private enum CodingKeys: String, CodingKey {
            case scaleIntervalMinutes = "ScaleIntervalMinutes"
            case scalePercentage = "ScalePercentage"
        }
    }

    public struct SecurityGroupMembership: AWSDecodableShape {
        /// The identifier of the cache security group.
        public let securityGroupId: String?
        /// The status of the cache security group membership. The status changes whenever a cache security group is modified, or when the cache security groups assigned to a cluster are modified.
        public let status: String?

        @inlinable
        public init(securityGroupId: String? = nil, status: String? = nil) {
            self.securityGroupId = securityGroupId
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case securityGroupId = "SecurityGroupId"
            case status = "Status"
        }
    }

    public struct ServerlessCache: AWSDecodableShape {
        public struct _SecurityGroupIdsEncoding: ArrayCoderProperties { public static let member = "SecurityGroupId" }
        public struct _SubnetIdsEncoding: ArrayCoderProperties { public static let member = "SubnetId" }

        /// The Amazon Resource Name (ARN) of the serverless cache.
        public let arn: String?
        /// The cache usage limit for the serverless cache.
        public let cacheUsageLimits: CacheUsageLimits?
        /// When the serverless cache was created.
        public let createTime: Date?
        /// The daily time that a cache snapshot will be created. Default is NULL, i.e. snapshots will not be created at a specific time on a daily basis. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let dailySnapshotTime: String?
        /// A description of the serverless cache.
        public let description: String?
        public let endpoint: Endpoint?
        /// The engine the serverless cache is compatible with.
        public let engine: String?
        /// The name and version number of the engine the serverless cache is compatible with.
        public let fullEngineVersion: String?
        /// The ID of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt data at rest in the serverless cache.
        public let kmsKeyId: String?
        /// The version number of the engine the serverless cache is compatible with.
        public let majorEngineVersion: String?
        public let readerEndpoint: Endpoint?
        /// The IDs of the EC2 security groups associated with the serverless  cache.
        @OptionalCustomCoding<ArrayCoder<_SecurityGroupIdsEncoding, String>>
        public var securityGroupIds: [String]?
        /// The unique identifier of the serverless cache.
        public let serverlessCacheName: String?
        /// The current setting for the number of serverless cache snapshots the system will retain. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let snapshotRetentionLimit: Int?
        /// The current status of the serverless cache. The allowed values are CREATING, AVAILABLE, DELETING, CREATE-FAILED and MODIFYING.
        public let status: String?
        /// If no subnet IDs are given and your VPC is in us-west-1, then ElastiCache will select 2 default subnets across AZs in your VPC.  For all other Regions, if no subnet IDs are given then ElastiCache will select 3 default subnets across AZs in your default VPC.
        @OptionalCustomCoding<ArrayCoder<_SubnetIdsEncoding, String>>
        public var subnetIds: [String]?
        /// The identifier of the user group associated with the serverless cache. Available for Valkey and Redis OSS only. Default is NULL.
        public let userGroupId: String?

        @inlinable
        public init(arn: String? = nil, cacheUsageLimits: CacheUsageLimits? = nil, createTime: Date? = nil, dailySnapshotTime: String? = nil, description: String? = nil, endpoint: Endpoint? = nil, engine: String? = nil, fullEngineVersion: String? = nil, kmsKeyId: String? = nil, majorEngineVersion: String? = nil, readerEndpoint: Endpoint? = nil, securityGroupIds: [String]? = nil, serverlessCacheName: String? = nil, snapshotRetentionLimit: Int? = nil, status: String? = nil, subnetIds: [String]? = nil, userGroupId: String? = nil) {
            self.arn = arn
            self.cacheUsageLimits = cacheUsageLimits
            self.createTime = createTime
            self.dailySnapshotTime = dailySnapshotTime
            self.description = description
            self.endpoint = endpoint
            self.engine = engine
            self.fullEngineVersion = fullEngineVersion
            self.kmsKeyId = kmsKeyId
            self.majorEngineVersion = majorEngineVersion
            self.readerEndpoint = readerEndpoint
            self.securityGroupIds = securityGroupIds
            self.serverlessCacheName = serverlessCacheName
            self.snapshotRetentionLimit = snapshotRetentionLimit
            self.status = status
            self.subnetIds = subnetIds
            self.userGroupId = userGroupId
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case cacheUsageLimits = "CacheUsageLimits"
            case createTime = "CreateTime"
            case dailySnapshotTime = "DailySnapshotTime"
            case description = "Description"
            case endpoint = "Endpoint"
            case engine = "Engine"
            case fullEngineVersion = "FullEngineVersion"
            case kmsKeyId = "KmsKeyId"
            case majorEngineVersion = "MajorEngineVersion"
            case readerEndpoint = "ReaderEndpoint"
            case securityGroupIds = "SecurityGroupIds"
            case serverlessCacheName = "ServerlessCacheName"
            case snapshotRetentionLimit = "SnapshotRetentionLimit"
            case status = "Status"
            case subnetIds = "SubnetIds"
            case userGroupId = "UserGroupId"
        }
    }

    public struct ServerlessCacheConfiguration: AWSDecodableShape {
        /// The engine that the serverless cache is configured with.
        public let engine: String?
        /// The engine version number that the serverless cache is configured with.
        public let majorEngineVersion: String?
        /// The identifier of a serverless cache.
        public let serverlessCacheName: String?

        @inlinable
        public init(engine: String? = nil, majorEngineVersion: String? = nil, serverlessCacheName: String? = nil) {
            self.engine = engine
            self.majorEngineVersion = majorEngineVersion
            self.serverlessCacheName = serverlessCacheName
        }

        private enum CodingKeys: String, CodingKey {
            case engine = "Engine"
            case majorEngineVersion = "MajorEngineVersion"
            case serverlessCacheName = "ServerlessCacheName"
        }
    }

    public struct ServerlessCacheSnapshot: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of a serverless cache snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let arn: String?
        /// The total size of a serverless cache snapshot, in bytes. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let bytesUsedForCache: String?
        /// The date and time that the source serverless cache's metadata and cache data set was obtained for the snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let createTime: Date?
        /// The time that the serverless cache snapshot will expire. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let expiryTime: Date?
        /// The ID of the Amazon Web Services Key Management Service (KMS) key of a serverless cache snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let kmsKeyId: String?
        /// The configuration of the serverless cache, at the time the snapshot was taken. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let serverlessCacheConfiguration: ServerlessCacheConfiguration?
        /// The identifier of a serverless cache snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let serverlessCacheSnapshotName: String?
        /// The type of snapshot of serverless cache. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let snapshotType: String?
        /// The current status of the serverless cache. Available for Valkey, Redis OSS and Serverless Memcached only.
        public let status: String?

        @inlinable
        public init(arn: String? = nil, bytesUsedForCache: String? = nil, createTime: Date? = nil, expiryTime: Date? = nil, kmsKeyId: String? = nil, serverlessCacheConfiguration: ServerlessCacheConfiguration? = nil, serverlessCacheSnapshotName: String? = nil, snapshotType: String? = nil, status: String? = nil) {
            self.arn = arn
            self.bytesUsedForCache = bytesUsedForCache
            self.createTime = createTime
            self.expiryTime = expiryTime
            self.kmsKeyId = kmsKeyId
            self.serverlessCacheConfiguration = serverlessCacheConfiguration
            self.serverlessCacheSnapshotName = serverlessCacheSnapshotName
            self.snapshotType = snapshotType
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case bytesUsedForCache = "BytesUsedForCache"
            case createTime = "CreateTime"
            case expiryTime = "ExpiryTime"
            case kmsKeyId = "KmsKeyId"
            case serverlessCacheConfiguration = "ServerlessCacheConfiguration"
            case serverlessCacheSnapshotName = "ServerlessCacheSnapshotName"
            case snapshotType = "SnapshotType"
            case status = "Status"
        }
    }

    public struct ServiceUpdate: AWSDecodableShape {
        /// Indicates whether the service update will be automatically applied once the recommended apply-by date has expired.
        public let autoUpdateAfterRecommendedApplyByDate: Bool?
        /// The Elasticache engine to which the update applies. Either Valkey, Redis OSS or Memcached.
        public let engine: String?
        /// The Elasticache engine version to which the update applies. Either Valkey, Redis OSS or Memcached engine version.
        public let engineVersion: String?
        /// The estimated length of time the service update will take
        public let estimatedUpdateTime: String?
        /// Provides details of the service update
        public let serviceUpdateDescription: String?
        /// The date after which the service update is no longer available
        public let serviceUpdateEndDate: Date?
        /// The unique ID of the service update
        public let serviceUpdateName: String?
        /// The recommendend date to apply the service update in order to ensure compliance. For information on compliance, see Self-Service Security Updates for Compliance.
        public let serviceUpdateRecommendedApplyByDate: Date?
        /// The date when the service update is initially available
        public let serviceUpdateReleaseDate: Date?
        /// The severity of the service update
        public let serviceUpdateSeverity: ServiceUpdateSeverity?
        /// The status of the service update
        public let serviceUpdateStatus: ServiceUpdateStatus?
        /// Reflects the nature of the service update
        public let serviceUpdateType: ServiceUpdateType?

        @inlinable
        public init(autoUpdateAfterRecommendedApplyByDate: Bool? = nil, engine: String? = nil, engineVersion: String? = nil, estimatedUpdateTime: String? = nil, serviceUpdateDescription: String? = nil, serviceUpdateEndDate: Date? = nil, serviceUpdateName: String? = nil, serviceUpdateRecommendedApplyByDate: Date? = nil, serviceUpdateReleaseDate: Date? = nil, serviceUpdateSeverity: ServiceUpdateSeverity? = nil, serviceUpdateStatus: ServiceUpdateStatus? = nil, serviceUpdateType: ServiceUpdateType? = nil) {
            self.autoUpdateAfterRecommendedApplyByDate = autoUpdateAfterRecommendedApplyByDate
            self.engine = engine
            self.engineVersion = engineVersion
            self.estimatedUpdateTime = estimatedUpdateTime
            self.serviceUpdateDescription = serviceUpdateDescription
            self.serviceUpdateEndDate = serviceUpdateEndDate
            self.serviceUpdateName = serviceUpdateName
            self.serviceUpdateRecommendedApplyByDate = serviceUpdateRecommendedApplyByDate
            self.serviceUpdateReleaseDate = serviceUpdateReleaseDate
            self.serviceUpdateSeverity = serviceUpdateSeverity
            self.serviceUpdateStatus = serviceUpdateStatus
            self.serviceUpdateType = serviceUpdateType
        }

        private enum CodingKeys: String, CodingKey {
            case autoUpdateAfterRecommendedApplyByDate = "AutoUpdateAfterRecommendedApplyByDate"
            case engine = "Engine"
            case engineVersion = "EngineVersion"
            case estimatedUpdateTime = "EstimatedUpdateTime"
            case serviceUpdateDescription = "ServiceUpdateDescription"
            case serviceUpdateEndDate = "ServiceUpdateEndDate"
            case serviceUpdateName = "ServiceUpdateName"
            case serviceUpdateRecommendedApplyByDate = "ServiceUpdateRecommendedApplyByDate"
            case serviceUpdateReleaseDate = "ServiceUpdateReleaseDate"
            case serviceUpdateSeverity = "ServiceUpdateSeverity"
            case serviceUpdateStatus = "ServiceUpdateStatus"
            case serviceUpdateType = "ServiceUpdateType"
        }
    }

    public struct ServiceUpdatesMessage: AWSDecodableShape {
        public struct _ServiceUpdatesEncoding: ArrayCoderProperties { public static let member = "ServiceUpdate" }

        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// A list of service updates
        @OptionalCustomCoding<ArrayCoder<_ServiceUpdatesEncoding, ServiceUpdate>>
        public var serviceUpdates: [ServiceUpdate]?

        @inlinable
        public init(marker: String? = nil, serviceUpdates: [ServiceUpdate]? = nil) {
            self.marker = marker
            self.serviceUpdates = serviceUpdates
        }

        private enum CodingKeys: String, CodingKey {
            case marker = "Marker"
            case serviceUpdates = "ServiceUpdates"
        }
    }

    public struct SlotMigration: AWSDecodableShape {
        /// The percentage of the slot migration that is complete.
        public let progressPercentage: Double?

        @inlinable
        public init(progressPercentage: Double? = nil) {
            self.progressPercentage = progressPercentage
        }

        private enum CodingKeys: String, CodingKey {
            case progressPercentage = "ProgressPercentage"
        }
    }

    public struct Snapshot: AWSDecodableShape {
        public struct _NodeSnapshotsEncoding: ArrayCoderProperties { public static let member = "NodeSnapshot" }

        /// The ARN (Amazon Resource Name) of the snapshot.
        public let arn: String?
        /// Indicates the status of automatic failover for the source Valkey or Redis OSS replication group.
        public let automaticFailover: AutomaticFailoverStatus?
        ///  If you are running Valkey 7.2 and above or Redis OSS engine version 6.0 and above, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
        public let autoMinorVersionUpgrade: Bool?
        /// The date and time when the source cluster was created.
        public let cacheClusterCreateTime: Date?
        /// The user-supplied identifier of the source cluster.
        public let cacheClusterId: String?
        /// The name of the compute and memory capacity node type for the source cluster. The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.   General purpose:   Current generation:   M7g node types: 					cache.m7g.large, 					cache.m7g.xlarge, 					cache.m7g.2xlarge, 					cache.m7g.4xlarge, 					cache.m7g.8xlarge, 					cache.m7g.12xlarge, 					cache.m7g.16xlarge   For region availability, see Supported Node Types    M6g node types (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
        ///
        /// 					 	cache.m6g.large,
        /// 							cache.m6g.xlarge,
        /// 							cache.m6g.2xlarge,
        /// 							cache.m6g.4xlarge,
        /// 							cache.m6g.8xlarge,
        /// 							cache.m6g.12xlarge,
        /// 							cache.m6g.16xlarge   M5 node types: cache.m5.large, 						cache.m5.xlarge, 						cache.m5.2xlarge, 						cache.m5.4xlarge, 						cache.m5.12xlarge, 						cache.m5.24xlarge   M4 node types: cache.m4.large, 						cache.m4.xlarge, 						cache.m4.2xlarge, 						cache.m4.4xlarge, 						cache.m4.10xlarge   T4g node types (available only for Redis OSS engine version 5.0.6 onward and Memcached engine version 1.5.16 onward):
        /// 					        cache.t4g.micro,
        /// 					        cache.t4g.small,
        /// 					        cache.t4g.medium   T3 node types: cache.t3.micro,  						cache.t3.small, 						cache.t3.medium   T2 node types: cache.t2.micro,  						cache.t2.small, 						cache.t2.medium    Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  T1 node types: cache.t1.micro   M1 node types: cache.m1.small,
        /// 						   cache.m1.medium,
        /// 						   cache.m1.large,
        /// 						   cache.m1.xlarge   M3 node types: cache.m3.medium, 						cache.m3.large,  						cache.m3.xlarge, 						cache.m3.2xlarge      Compute optimized:   Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  C1 node types: cache.c1.xlarge      Memory optimized:   Current generation:   R7g node types:
        /// 							cache.r7g.large,
        /// 							cache.r7g.xlarge,
        /// 							cache.r7g.2xlarge,
        /// 							cache.r7g.4xlarge,
        /// 							cache.r7g.8xlarge,
        /// 							cache.r7g.12xlarge,
        /// 							cache.r7g.16xlarge   For region availability, see Supported Node Types    R6g node types (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
        /// 							cache.r6g.large,
        /// 							cache.r6g.xlarge,
        /// 							cache.r6g.2xlarge,
        /// 							cache.r6g.4xlarge,
        /// 							cache.r6g.8xlarge,
        /// 							cache.r6g.12xlarge,
        /// 							cache.r6g.16xlarge   R5 node types: cache.r5.large, 					   cache.r5.xlarge, 					   cache.r5.2xlarge, 					   cache.r5.4xlarge, 					   cache.r5.12xlarge, 					   cache.r5.24xlarge   R4 node types: cache.r4.large, 					   cache.r4.xlarge, 					   cache.r4.2xlarge, 					   cache.r4.4xlarge, 					   cache.r4.8xlarge, 					   cache.r4.16xlarge    Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)  M2 node types: cache.m2.xlarge,  						cache.m2.2xlarge, 						cache.m2.4xlarge   R3 node types: cache.r3.large,  						cache.r3.xlarge, 						cache.r3.2xlarge,   						cache.r3.4xlarge, 						cache.r3.8xlarge       Additional node type info    All current generation instance types are created in Amazon VPC by default.   Valkey or Redis OSS append-only files (AOF) are not supported for T1 or T2 instances.   Valkey or Redis OSS Multi-AZ with automatic failover is not supported on T1 instances.   The configuration variables appendonly and appendfsync are not supported on Valkey, or on Redis OSS version 2.8.22 and later.
        public let cacheNodeType: String?
        /// The cache parameter group that is associated with the source cluster.
        public let cacheParameterGroupName: String?
        /// The name of the cache subnet group associated with the source cluster.
        public let cacheSubnetGroupName: String?
        /// Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. For more information, see Data tiering.
        public let dataTiering: DataTieringStatus?
        /// The name of the cache engine (memcached or redis) used by the source cluster.
        public let engine: String?
        /// The version of the cache engine version that is used by the source cluster.
        public let engineVersion: String?
        /// The ID of the KMS key used to encrypt the snapshot.
        public let kmsKeyId: String?
        /// A list of the cache nodes in the source cluster.
        @OptionalCustomCoding<ArrayCoder<_NodeSnapshotsEncoding, NodeSnapshot>>
        public var nodeSnapshots: [NodeSnapshot]?
        /// The number of cache nodes in the source cluster. For clusters running Valkey or Redis OSS, this value must be 1. For clusters running Memcached, this value must be between 1 and 40.
        public let numCacheNodes: Int?
        /// The number of node groups (shards) in this snapshot. When restoring from a snapshot, the number of node groups (shards) in the snapshot and in the restored replication group must be the same.
        public let numNodeGroups: Int?
        /// The port number used by each cache nodes in the source cluster.
        public let port: Int?
        /// The name of the Availability Zone in which the source cluster is located.
        public let preferredAvailabilityZone: String?
        /// Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:    sun     mon     tue     wed     thu     fri     sat    Example: sun:23:00-mon:01:30
        public let preferredMaintenanceWindow: String?
        /// The ARN (Amazon Resource Name) of the preferred outpost.
        public let preferredOutpostArn: String?
        /// A description of the source replication group.
        public let replicationGroupDescription: String?
        /// The unique identifier of the source replication group.
        public let replicationGroupId: String?
        /// The name of a snapshot. For an automatic snapshot, the name is system-generated. For a manual snapshot, this is the user-provided name.
        public let snapshotName: String?
        /// For an automatic snapshot, the number of days for which ElastiCache retains the snapshot before deleting it. For manual snapshots, this field reflects the SnapshotRetentionLimit for the source cluster when the snapshot was created. This field is otherwise ignored: Manual snapshots do not expire, and can only be deleted using the DeleteSnapshot operation.   Important If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.
        public let snapshotRetentionLimit: Int?
        /// Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).
        public let snapshotSource: String?
        /// The status of the snapshot. Valid values: creating | available | restoring | copying | deleting.
        public let snapshotStatus: String?
        /// The daily time range during which ElastiCache takes daily snapshots of the source cluster.
        public let snapshotWindow: String?
        /// The Amazon Resource Name (ARN) for the topic used by the source cluster for publishing notifications.
        public let topicArn: String?
        /// The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group for the source cluster.
        public let vpcId: String?

        @inlinable
        public init(arn: String? = nil, automaticFailover: AutomaticFailoverStatus? = nil, autoMinorVersionUpgrade: Bool? = nil, cacheClusterCreateTime: Date? = nil, cacheClusterId: String? = nil, cacheNodeType: String? = nil, cacheParameterGroupName: String? = nil, cacheSubnetGroupName: String? = nil, dataTiering: DataTieringStatus? = nil, engine: String? = nil, engineVersion: String? = nil, kmsKeyId: String? = nil, nodeSnapshots: [NodeSnapshot]? = nil, numCacheNodes: Int? = nil, numNodeGroups: Int? = nil, port: Int? = nil, preferredAvailabilityZone: String? = nil, preferredMaintenanceWindow: String? = nil, preferredOutpostArn: String? = nil, replicationGroupDescription: String? = nil, replicationGroupId: String? = nil, snapshotName: String? = nil, snapshotRetentionLimit: Int? = nil, snapshotSource: String? = nil, snapshotStatus: String? = nil, snapshotWindow: String? = nil, topicArn: String? = nil, vpcId: String? = nil) {
            self.arn = arn
            self.automaticFailover = automaticFailover
            self.autoMinorVersionUpgrade = autoMinorVersionUpgrade
            self.cacheClusterCreateTime = cacheClusterCreateTime
            self.cacheClusterId = cacheClusterId
            self.cacheNodeType = cacheNodeType
            self.cacheParameterGroupName = cacheParameterGroupName
            self.cacheSubnetGroupName = cacheSubnetGroupName
            self.dataTiering = dataTiering
            self.engine = engine
            self.engineVersion = engineVersion
            self.kmsKeyId = kmsKeyId
            self.nodeSnapshots = nodeSnapshots
            self.numCacheNodes = numCacheNodes
            self.numNodeGroups = numNodeGroups
            self.port = port
            self.preferredAvailabilityZone = preferredAvailabilityZone
            self.preferredMaintenanceWindow = preferredMaintenanceWindow
            self.preferredOutpostArn = preferredOutpostArn
            self.replicationGroupDescription = replicationGroupDescription
            self.replicationGroupId = replicationGroupId
            self.snapshotName = snapshotName
            self.snapshotRetentionLimit = snapshotRetentionLimit
            self.snapshotSource = snapshotSource
            self.snapshotStatus = snapshotStatus
            self.snapshotWindow = snapshotWindow
            self.topicArn = topicArn
            self.vpcId = vpcId
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case automaticFailover = "AutomaticFailover"
            case autoMinorVersionUpgrade = "AutoMinorVersionUpgrade"
            case cacheClusterCreateTime = "CacheClusterCreateTime"
            case cacheClusterId = "CacheClusterId"
            case cacheNodeType = "CacheNodeType"
            case cacheParameterGroupName = "CacheParameterGroupName"
            case cacheSubnetGroupName = "CacheSubnetGroupName"
            case dataTiering = "DataTiering"
            case engine = "Engine"
            case engineVersion = "EngineVersion"
            case kmsKeyId = "KmsKeyId"
            case nodeSnapshots = "NodeSnapshots"
            case numCacheNodes = "NumCacheNodes"
            case numNodeGroups = "NumNodeGroups"
            case port = "Port"
            case preferredAvailabilityZone = "PreferredAvailabilityZone"
            case preferredMaintenanceWindow = "PreferredMaintenanceWindow"
            case preferredOutpostArn = "PreferredOutpostArn"
            case replicationGroupDescription = "ReplicationGroupDescription"
            case replicationGroupId = "ReplicationGroupId"
            case snapshotName = "SnapshotName"
            case snapshotRetentionLimit = "SnapshotRetentionLimit"
            case snapshotSource = "SnapshotSource"
            case snapshotStatus = "SnapshotStatus"
            case snapshotWindow = "SnapshotWindow"
            case topicArn = "TopicArn"
            case vpcId = "VpcId"
        }
    }

    public struct StartMigrationMessage: AWSEncodableShape {
        /// List of endpoints from which data should be migrated. For Valkey or Redis OSS (cluster mode disabled), the list should have only one element.
        @OptionalCustomCoding<StandardArrayCoder<CustomerNodeEndpoint>>
        public var customerNodeEndpointList: [CustomerNodeEndpoint]?
        /// The ID of the replication group to which data should be migrated.
        public let replicationGroupId: String?

        @inlinable
        public init(customerNodeEndpointList: [CustomerNodeEndpoint]? = nil, replicationGroupId: String? = nil) {
            self.customerNodeEndpointList = customerNodeEndpointList
            self.replicationGroupId = replicationGroupId
        }

        private enum CodingKeys: String, CodingKey {
            case customerNodeEndpointList = "CustomerNodeEndpointList"
            case replicationGroupId = "ReplicationGroupId"
        }
    }

    public struct StartMigrationResponse: AWSDecodableShape {
        public let replicationGroup: ReplicationGroup?

        @inlinable
        public init(replicationGroup: ReplicationGroup? = nil) {
            self.replicationGroup = replicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case replicationGroup = "ReplicationGroup"
        }
    }

    public struct Subnet: AWSDecodableShape {
        /// The Availability Zone associated with the subnet.
        public let subnetAvailabilityZone: AvailabilityZone?
        /// The unique identifier for the subnet.
        public let subnetIdentifier: String?
        /// The outpost ARN of the subnet.
        public let subnetOutpost: SubnetOutpost?
        /// Either ipv4 | ipv6 | dual_stack. IPv6 is supported for workloads using Valkey 7.2 and above, Redis OSS engine version 6.2 to 7.1 or Memcached engine version 1.6.6 and above on all instances built on the Nitro system.
        @OptionalCustomCoding<StandardArrayCoder<NetworkType>>
        public var supportedNetworkTypes: [NetworkType]?

        @inlinable
        public init(subnetAvailabilityZone: AvailabilityZone? = nil, subnetIdentifier: String? = nil, subnetOutpost: SubnetOutpost? = nil, supportedNetworkTypes: [NetworkType]? = nil) {
            self.subnetAvailabilityZone = subnetAvailabilityZone
            self.subnetIdentifier = subnetIdentifier
            self.subnetOutpost = subnetOutpost
            self.supportedNetworkTypes = supportedNetworkTypes
        }

        private enum CodingKeys: String, CodingKey {
            case subnetAvailabilityZone = "SubnetAvailabilityZone"
            case subnetIdentifier = "SubnetIdentifier"
            case subnetOutpost = "SubnetOutpost"
            case supportedNetworkTypes = "SupportedNetworkTypes"
        }
    }

    public struct SubnetOutpost: AWSDecodableShape {
        /// The outpost ARN of the subnet.
        public let subnetOutpostArn: String?

        @inlinable
        public init(subnetOutpostArn: String? = nil) {
            self.subnetOutpostArn = subnetOutpostArn
        }

        private enum CodingKeys: String, CodingKey {
            case subnetOutpostArn = "SubnetOutpostArn"
        }
    }

    public struct Tag: AWSEncodableShape & AWSDecodableShape {
        /// The key for the tag. May not be null.
        public let key: String?
        /// The tag's value. May be null.
        public let value: String?

        @inlinable
        public init(key: String? = nil, value: String? = nil) {
            self.key = key
            self.value = value
        }

        private enum CodingKeys: String, CodingKey {
            case key = "Key"
            case value = "Value"
        }
    }

    public struct TagListMessage: AWSDecodableShape {
        public struct _TagListEncoding: ArrayCoderProperties { public static let member = "Tag" }

        /// A list of tags as key-value pairs.
        @OptionalCustomCoding<ArrayCoder<_TagListEncoding, Tag>>
        public var tagList: [Tag]?

        @inlinable
        public init(tagList: [Tag]? = nil) {
            self.tagList = tagList
        }

        private enum CodingKeys: String, CodingKey {
            case tagList = "TagList"
        }
    }

    public struct TestFailoverMessage: AWSEncodableShape {
        /// The name of the node group (called shard in the console) in this replication group on which automatic failover is to be tested. You may test automatic failover on up to 15 node groups in any rolling 24-hour period.
        public let nodeGroupId: String?
        /// The name of the replication group (console: cluster) whose automatic failover is being tested by this operation.
        public let replicationGroupId: String?

        @inlinable
        public init(nodeGroupId: String? = nil, replicationGroupId: String? = nil) {
            self.nodeGroupId = nodeGroupId
            self.replicationGroupId = replicationGroupId
        }

        public func validate(name: String) throws {
            try self.validate(self.nodeGroupId, name: "nodeGroupId", parent: name, max: 4)
            try self.validate(self.nodeGroupId, name: "nodeGroupId", parent: name, min: 1)
            try self.validate(self.nodeGroupId, name: "nodeGroupId", parent: name, pattern: "^\\d+$")
        }

        private enum CodingKeys: String, CodingKey {
            case nodeGroupId = "NodeGroupId"
            case replicationGroupId = "ReplicationGroupId"
        }
    }

    public struct TestFailoverResult: AWSDecodableShape {
        public let replicationGroup: ReplicationGroup?

        @inlinable
        public init(replicationGroup: ReplicationGroup? = nil) {
            self.replicationGroup = replicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case replicationGroup = "ReplicationGroup"
        }
    }

    public struct TestMigrationMessage: AWSEncodableShape {
        ///  List of endpoints from which data should be migrated. List should have only one element.
        @OptionalCustomCoding<StandardArrayCoder<CustomerNodeEndpoint>>
        public var customerNodeEndpointList: [CustomerNodeEndpoint]?
        ///  The ID of the replication group to which data is to be migrated.
        public let replicationGroupId: String?

        @inlinable
        public init(customerNodeEndpointList: [CustomerNodeEndpoint]? = nil, replicationGroupId: String? = nil) {
            self.customerNodeEndpointList = customerNodeEndpointList
            self.replicationGroupId = replicationGroupId
        }

        private enum CodingKeys: String, CodingKey {
            case customerNodeEndpointList = "CustomerNodeEndpointList"
            case replicationGroupId = "ReplicationGroupId"
        }
    }

    public struct TestMigrationResponse: AWSDecodableShape {
        public let replicationGroup: ReplicationGroup?

        @inlinable
        public init(replicationGroup: ReplicationGroup? = nil) {
            self.replicationGroup = replicationGroup
        }

        private enum CodingKeys: String, CodingKey {
            case replicationGroup = "ReplicationGroup"
        }
    }

    public struct TimeRangeFilter: AWSEncodableShape {
        /// The end time of the time range filter
        public let endTime: Date?
        /// The start time of the time range filter
        public let startTime: Date?

        @inlinable
        public init(endTime: Date? = nil, startTime: Date? = nil) {
            self.endTime = endTime
            self.startTime = startTime
        }

        private enum CodingKeys: String, CodingKey {
            case endTime = "EndTime"
            case startTime = "StartTime"
        }
    }

    public struct UnprocessedUpdateAction: AWSDecodableShape {
        /// The ID of the cache cluster
        public let cacheClusterId: String?
        /// The error message that describes the reason the request was not processed
        public let errorMessage: String?
        /// The error type for requests that are not processed
        public let errorType: String?
        /// The replication group ID
        public let replicationGroupId: String?
        /// The unique ID of the service update
        public let serviceUpdateName: String?

        @inlinable
        public init(cacheClusterId: String? = nil, errorMessage: String? = nil, errorType: String? = nil, replicationGroupId: String? = nil, serviceUpdateName: String? = nil) {
            self.cacheClusterId = cacheClusterId
            self.errorMessage = errorMessage
            self.errorType = errorType
            self.replicationGroupId = replicationGroupId
            self.serviceUpdateName = serviceUpdateName
        }

        private enum CodingKeys: String, CodingKey {
            case cacheClusterId = "CacheClusterId"
            case errorMessage = "ErrorMessage"
            case errorType = "ErrorType"
            case replicationGroupId = "ReplicationGroupId"
            case serviceUpdateName = "ServiceUpdateName"
        }
    }

    public struct UpdateAction: AWSDecodableShape {
        public struct _CacheNodeUpdateStatusEncoding: ArrayCoderProperties { public static let member = "CacheNodeUpdateStatus" }
        public struct _NodeGroupUpdateStatusEncoding: ArrayCoderProperties { public static let member = "NodeGroupUpdateStatus" }

        /// The ID of the cache cluster
        public let cacheClusterId: String?
        /// The status of the service update on the cache node
        @OptionalCustomCoding<ArrayCoder<_CacheNodeUpdateStatusEncoding, CacheNodeUpdateStatus>>
        public var cacheNodeUpdateStatus: [CacheNodeUpdateStatus]?
        /// The Elasticache engine to which the update applies. Either Valkey, Redis OSS or Memcached.
        public let engine: String?
        /// The estimated length of time for the update to complete
        public let estimatedUpdateTime: String?
        /// The status of the service update on the node group
        @OptionalCustomCoding<ArrayCoder<_NodeGroupUpdateStatusEncoding, NodeGroupUpdateStatus>>
        public var nodeGroupUpdateStatus: [NodeGroupUpdateStatus]?
        /// The progress of the service update on the replication group
        public let nodesUpdated: String?
        /// The ID of the replication group
        public let replicationGroupId: String?
        /// The unique ID of the service update
        public let serviceUpdateName: String?
        /// The recommended date to apply the service update to ensure compliance. For information on compliance, see Self-Service Security Updates for Compliance.
        public let serviceUpdateRecommendedApplyByDate: Date?
        /// The date the update is first available
        public let serviceUpdateReleaseDate: Date?
        /// The severity of the service update
        public let serviceUpdateSeverity: ServiceUpdateSeverity?
        /// The status of the service update
        public let serviceUpdateStatus: ServiceUpdateStatus?
        /// Reflects the nature of the service update
        public let serviceUpdateType: ServiceUpdateType?
        /// If yes, all nodes in the replication group have been updated by the recommended apply-by date. If no, at least one node in the replication group have not been updated by the recommended apply-by date. If N/A, the replication group was created after the recommended apply-by date.
        public let slaMet: SlaMet?
        /// The date that the service update is available to a replication group
        public let updateActionAvailableDate: Date?
        /// The status of the update action
        public let updateActionStatus: UpdateActionStatus?
        /// The date when the UpdateActionStatus was last modified
        public let updateActionStatusModifiedDate: Date?

        @inlinable
        public init(cacheClusterId: String? = nil, cacheNodeUpdateStatus: [CacheNodeUpdateStatus]? = nil, engine: String? = nil, estimatedUpdateTime: String? = nil, nodeGroupUpdateStatus: [NodeGroupUpdateStatus]? = nil, nodesUpdated: String? = nil, replicationGroupId: String? = nil, serviceUpdateName: String? = nil, serviceUpdateRecommendedApplyByDate: Date? = nil, serviceUpdateReleaseDate: Date? = nil, serviceUpdateSeverity: ServiceUpdateSeverity? = nil, serviceUpdateStatus: ServiceUpdateStatus? = nil, serviceUpdateType: ServiceUpdateType? = nil, slaMet: SlaMet? = nil, updateActionAvailableDate: Date? = nil, updateActionStatus: UpdateActionStatus? = nil, updateActionStatusModifiedDate: Date? = nil) {
            self.cacheClusterId = cacheClusterId
            self.cacheNodeUpdateStatus = cacheNodeUpdateStatus
            self.engine = engine
            self.estimatedUpdateTime = estimatedUpdateTime
            self.nodeGroupUpdateStatus = nodeGroupUpdateStatus
            self.nodesUpdated = nodesUpdated
            self.replicationGroupId = replicationGroupId
            self.serviceUpdateName = serviceUpdateName
            self.serviceUpdateRecommendedApplyByDate = serviceUpdateRecommendedApplyByDate
            self.serviceUpdateReleaseDate = serviceUpdateReleaseDate
            self.serviceUpdateSeverity = serviceUpdateSeverity
            self.serviceUpdateStatus = serviceUpdateStatus
            self.serviceUpdateType = serviceUpdateType
            self.slaMet = slaMet
            self.updateActionAvailableDate = updateActionAvailableDate
            self.updateActionStatus = updateActionStatus
            self.updateActionStatusModifiedDate = updateActionStatusModifiedDate
        }

        private enum CodingKeys: String, CodingKey {
            case cacheClusterId = "CacheClusterId"
            case cacheNodeUpdateStatus = "CacheNodeUpdateStatus"
            case engine = "Engine"
            case estimatedUpdateTime = "EstimatedUpdateTime"
            case nodeGroupUpdateStatus = "NodeGroupUpdateStatus"
            case nodesUpdated = "NodesUpdated"
            case replicationGroupId = "ReplicationGroupId"
            case serviceUpdateName = "ServiceUpdateName"
            case serviceUpdateRecommendedApplyByDate = "ServiceUpdateRecommendedApplyByDate"
            case serviceUpdateReleaseDate = "ServiceUpdateReleaseDate"
            case serviceUpdateSeverity = "ServiceUpdateSeverity"
            case serviceUpdateStatus = "ServiceUpdateStatus"
            case serviceUpdateType = "ServiceUpdateType"
            case slaMet = "SlaMet"
            case updateActionAvailableDate = "UpdateActionAvailableDate"
            case updateActionStatus = "UpdateActionStatus"
            case updateActionStatusModifiedDate = "UpdateActionStatusModifiedDate"
        }
    }

    public struct UpdateActionResultsMessage: AWSDecodableShape {
        public struct _ProcessedUpdateActionsEncoding: ArrayCoderProperties { public static let member = "ProcessedUpdateAction" }
        public struct _UnprocessedUpdateActionsEncoding: ArrayCoderProperties { public static let member = "UnprocessedUpdateAction" }

        /// Update actions that have been processed successfully
        @OptionalCustomCoding<ArrayCoder<_ProcessedUpdateActionsEncoding, ProcessedUpdateAction>>
        public var processedUpdateActions: [ProcessedUpdateAction]?
        /// Update actions that haven't been processed successfully
        @OptionalCustomCoding<ArrayCoder<_UnprocessedUpdateActionsEncoding, UnprocessedUpdateAction>>
        public var unprocessedUpdateActions: [UnprocessedUpdateAction]?

        @inlinable
        public init(processedUpdateActions: [ProcessedUpdateAction]? = nil, unprocessedUpdateActions: [UnprocessedUpdateAction]? = nil) {
            self.processedUpdateActions = processedUpdateActions
            self.unprocessedUpdateActions = unprocessedUpdateActions
        }

        private enum CodingKeys: String, CodingKey {
            case processedUpdateActions = "ProcessedUpdateActions"
            case unprocessedUpdateActions = "UnprocessedUpdateActions"
        }
    }

    public struct UpdateActionsMessage: AWSDecodableShape {
        public struct _UpdateActionsEncoding: ArrayCoderProperties { public static let member = "UpdateAction" }

        /// An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
        public let marker: String?
        /// Returns a list of update actions
        @OptionalCustomCoding<ArrayCoder<_UpdateActionsEncoding, UpdateAction>>
        public var updateActions: [UpdateAction]?

        @inlinable
        public init(marker: String? = nil, updateActions: [UpdateAction]? = nil) {
            self.marker = marker
            self.updateActions = updateActions
        }

        private enum CodingKeys: String, CodingKey {
            case marker = "Marker"
            case updateActions = "UpdateActions"
        }
    }

    public struct User: AWSDecodableShape {
        /// Access permissions string used for this user.
        public let accessString: String?
        /// The Amazon Resource Name (ARN) of the user.
        public let arn: String?
        /// Denotes whether the user requires a password to authenticate.
        public let authentication: Authentication?
        /// The options are valkey or redis.
        public let engine: String?
        /// The minimum engine version required, which is Redis OSS 6.0
        public let minimumEngineVersion: String?
        /// Indicates the user status. Can be "active", "modifying" or "deleting".
        public let status: String?
        /// Returns a list of the user group IDs the user belongs to.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var userGroupIds: [String]?
        /// The ID of the user.
        public let userId: String?
        /// The username of the user.
        public let userName: String?

        @inlinable
        public init(accessString: String? = nil, arn: String? = nil, authentication: Authentication? = nil, engine: String? = nil, minimumEngineVersion: String? = nil, status: String? = nil, userGroupIds: [String]? = nil, userId: String? = nil, userName: String? = nil) {
            self.accessString = accessString
            self.arn = arn
            self.authentication = authentication
            self.engine = engine
            self.minimumEngineVersion = minimumEngineVersion
            self.status = status
            self.userGroupIds = userGroupIds
            self.userId = userId
            self.userName = userName
        }

        private enum CodingKeys: String, CodingKey {
            case accessString = "AccessString"
            case arn = "ARN"
            case authentication = "Authentication"
            case engine = "Engine"
            case minimumEngineVersion = "MinimumEngineVersion"
            case status = "Status"
            case userGroupIds = "UserGroupIds"
            case userId = "UserId"
            case userName = "UserName"
        }
    }

    public struct UserGroup: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the user group.
        public let arn: String?
        /// The options are valkey or redis.
        public let engine: String?
        /// The minimum engine version required, which is Redis OSS 6.0
        public let minimumEngineVersion: String?
        /// A list of updates being applied to the user group.
        public let pendingChanges: UserGroupPendingChanges?
        /// A list of replication groups that the user group can access.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var replicationGroups: [String]?
        /// Indicates which serverless caches the specified user group is associated with. Available for Valkey, Redis OSS and Serverless Memcached only.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var serverlessCaches: [String]?
        /// Indicates user group status. Can be "creating", "active", "modifying", "deleting".
        public let status: String?
        /// The ID of the user group.
        public let userGroupId: String?
        /// The list of user IDs that belong to the user group.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var userIds: [String]?

        @inlinable
        public init(arn: String? = nil, engine: String? = nil, minimumEngineVersion: String? = nil, pendingChanges: UserGroupPendingChanges? = nil, replicationGroups: [String]? = nil, serverlessCaches: [String]? = nil, status: String? = nil, userGroupId: String? = nil, userIds: [String]? = nil) {
            self.arn = arn
            self.engine = engine
            self.minimumEngineVersion = minimumEngineVersion
            self.pendingChanges = pendingChanges
            self.replicationGroups = replicationGroups
            self.serverlessCaches = serverlessCaches
            self.status = status
            self.userGroupId = userGroupId
            self.userIds = userIds
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case engine = "Engine"
            case minimumEngineVersion = "MinimumEngineVersion"
            case pendingChanges = "PendingChanges"
            case replicationGroups = "ReplicationGroups"
            case serverlessCaches = "ServerlessCaches"
            case status = "Status"
            case userGroupId = "UserGroupId"
            case userIds = "UserIds"
        }
    }

    public struct UserGroupPendingChanges: AWSDecodableShape {
        /// The list of user IDs to add.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var userIdsToAdd: [String]?
        /// The list of user IDs to remove.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var userIdsToRemove: [String]?

        @inlinable
        public init(userIdsToAdd: [String]? = nil, userIdsToRemove: [String]? = nil) {
            self.userIdsToAdd = userIdsToAdd
            self.userIdsToRemove = userIdsToRemove
        }

        private enum CodingKeys: String, CodingKey {
            case userIdsToAdd = "UserIdsToAdd"
            case userIdsToRemove = "UserIdsToRemove"
        }
    }

    public struct UserGroupsUpdateStatus: AWSDecodableShape {
        /// The ID of the user group to add.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var userGroupIdsToAdd: [String]?
        /// The ID of the user group to remove.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var userGroupIdsToRemove: [String]?

        @inlinable
        public init(userGroupIdsToAdd: [String]? = nil, userGroupIdsToRemove: [String]? = nil) {
            self.userGroupIdsToAdd = userGroupIdsToAdd
            self.userGroupIdsToRemove = userGroupIdsToRemove
        }

        private enum CodingKeys: String, CodingKey {
            case userGroupIdsToAdd = "UserGroupIdsToAdd"
            case userGroupIdsToRemove = "UserGroupIdsToRemove"
        }
    }
}

// MARK: - Errors

/// Error enum for ElastiCache
public struct ElastiCacheErrorType: AWSErrorType {
    enum Code: String {
        case apiCallRateForCustomerExceededFault = "APICallRateForCustomerExceeded"
        case authorizationAlreadyExistsFault = "AuthorizationAlreadyExists"
        case authorizationNotFoundFault = "AuthorizationNotFound"
        case cacheClusterAlreadyExistsFault = "CacheClusterAlreadyExists"
        case cacheClusterNotFoundFault = "CacheClusterNotFound"
        case cacheParameterGroupAlreadyExistsFault = "CacheParameterGroupAlreadyExists"
        case cacheParameterGroupNotFoundFault = "CacheParameterGroupNotFound"
        case cacheParameterGroupQuotaExceededFault = "CacheParameterGroupQuotaExceeded"
        case cacheSecurityGroupAlreadyExistsFault = "CacheSecurityGroupAlreadyExists"
        case cacheSecurityGroupNotFoundFault = "CacheSecurityGroupNotFound"
        case cacheSecurityGroupQuotaExceededFault = "QuotaExceeded.CacheSecurityGroup"
        case cacheSubnetGroupAlreadyExistsFault = "CacheSubnetGroupAlreadyExists"
        case cacheSubnetGroupInUse = "CacheSubnetGroupInUse"
        case cacheSubnetGroupNotFoundFault = "CacheSubnetGroupNotFoundFault"
        case cacheSubnetGroupQuotaExceededFault = "CacheSubnetGroupQuotaExceeded"
        case cacheSubnetQuotaExceededFault = "CacheSubnetQuotaExceededFault"
        case clusterQuotaForCustomerExceededFault = "ClusterQuotaForCustomerExceeded"
        case defaultUserAssociatedToUserGroupFault = "DefaultUserAssociatedToUserGroup"
        case defaultUserRequired = "DefaultUserRequired"
        case duplicateUserNameFault = "DuplicateUserName"
        case globalReplicationGroupAlreadyExistsFault = "GlobalReplicationGroupAlreadyExistsFault"
        case globalReplicationGroupNotFoundFault = "GlobalReplicationGroupNotFoundFault"
        case insufficientCacheClusterCapacityFault = "InsufficientCacheClusterCapacity"
        case invalidARNFault = "InvalidARN"
        case invalidCacheClusterStateFault = "InvalidCacheClusterState"
        case invalidCacheParameterGroupStateFault = "InvalidCacheParameterGroupState"
        case invalidCacheSecurityGroupStateFault = "InvalidCacheSecurityGroupState"
        case invalidCredentialsException = "InvalidCredentialsException"
        case invalidGlobalReplicationGroupStateFault = "InvalidGlobalReplicationGroupState"
        case invalidKMSKeyFault = "InvalidKMSKeyFault"
        case invalidParameterCombinationException = "InvalidParameterCombination"
        case invalidParameterValueException = "InvalidParameterValue"
        case invalidReplicationGroupStateFault = "InvalidReplicationGroupState"
        case invalidServerlessCacheSnapshotStateFault = "InvalidServerlessCacheSnapshotStateFault"
        case invalidServerlessCacheStateFault = "InvalidServerlessCacheStateFault"
        case invalidSnapshotStateFault = "InvalidSnapshotState"
        case invalidSubnet = "InvalidSubnet"
        case invalidUserGroupStateFault = "InvalidUserGroupState"
        case invalidUserStateFault = "InvalidUserState"
        case invalidVPCNetworkStateFault = "InvalidVPCNetworkStateFault"
        case noOperationFault = "NoOperationFault"
        case nodeGroupNotFoundFault = "NodeGroupNotFoundFault"
        case nodeGroupsPerReplicationGroupQuotaExceededFault = "NodeGroupsPerReplicationGroupQuotaExceeded"
        case nodeQuotaForClusterExceededFault = "NodeQuotaForClusterExceeded"
        case nodeQuotaForCustomerExceededFault = "NodeQuotaForCustomerExceeded"
        case replicationGroupAlreadyExistsFault = "ReplicationGroupAlreadyExists"
        case replicationGroupAlreadyUnderMigrationFault = "ReplicationGroupAlreadyUnderMigrationFault"
        case replicationGroupNotFoundFault = "ReplicationGroupNotFoundFault"
        case replicationGroupNotUnderMigrationFault = "ReplicationGroupNotUnderMigrationFault"
        case reservedCacheNodeAlreadyExistsFault = "ReservedCacheNodeAlreadyExists"
        case reservedCacheNodeNotFoundFault = "ReservedCacheNodeNotFound"
        case reservedCacheNodeQuotaExceededFault = "ReservedCacheNodeQuotaExceeded"
        case reservedCacheNodesOfferingNotFoundFault = "ReservedCacheNodesOfferingNotFound"
        case serverlessCacheAlreadyExistsFault = "ServerlessCacheAlreadyExistsFault"
        case serverlessCacheNotFoundFault = "ServerlessCacheNotFoundFault"
        case serverlessCacheQuotaForCustomerExceededFault = "ServerlessCacheQuotaForCustomerExceededFault"
        case serverlessCacheSnapshotAlreadyExistsFault = "ServerlessCacheSnapshotAlreadyExistsFault"
        case serverlessCacheSnapshotNotFoundFault = "ServerlessCacheSnapshotNotFoundFault"
        case serverlessCacheSnapshotQuotaExceededFault = "ServerlessCacheSnapshotQuotaExceededFault"
        case serviceLinkedRoleNotFoundFault = "ServiceLinkedRoleNotFoundFault"
        case serviceUpdateNotFoundFault = "ServiceUpdateNotFoundFault"
        case snapshotAlreadyExistsFault = "SnapshotAlreadyExistsFault"
        case snapshotFeatureNotSupportedFault = "SnapshotFeatureNotSupportedFault"
        case snapshotNotFoundFault = "SnapshotNotFoundFault"
        case snapshotQuotaExceededFault = "SnapshotQuotaExceededFault"
        case subnetInUse = "SubnetInUse"
        case subnetNotAllowedFault = "SubnetNotAllowedFault"
        case tagNotFoundFault = "TagNotFound"
        case tagQuotaPerResourceExceeded = "TagQuotaPerResourceExceeded"
        case testFailoverNotAvailableFault = "TestFailoverNotAvailableFault"
        case userAlreadyExistsFault = "UserAlreadyExists"
        case userGroupAlreadyExistsFault = "UserGroupAlreadyExists"
        case userGroupNotFoundFault = "UserGroupNotFound"
        case userGroupQuotaExceededFault = "UserGroupQuotaExceeded"
        case userNotFoundFault = "UserNotFound"
        case userQuotaExceededFault = "UserQuotaExceeded"
    }

    private let error: Code
    public let context: AWSErrorContext?

    /// initialize ElastiCache
    public init?(errorCode: String, context: AWSErrorContext) {
        guard let error = Code(rawValue: errorCode) else { return nil }
        self.error = error
        self.context = context
    }

    internal init(_ error: Code) {
        self.error = error
        self.context = nil
    }

    /// return error code string
    public var errorCode: String { self.error.rawValue }

    /// The customer has exceeded the allowed rate of API calls.
    public static var apiCallRateForCustomerExceededFault: Self { .init(.apiCallRateForCustomerExceededFault) }
    /// The specified Amazon EC2 security group is already authorized for the specified cache security group.
    public static var authorizationAlreadyExistsFault: Self { .init(.authorizationAlreadyExistsFault) }
    /// The specified Amazon EC2 security group is not authorized for the specified cache security group.
    public static var authorizationNotFoundFault: Self { .init(.authorizationNotFoundFault) }
    /// You already have a cluster with the given identifier.
    public static var cacheClusterAlreadyExistsFault: Self { .init(.cacheClusterAlreadyExistsFault) }
    /// The requested cluster ID does not refer to an existing cluster.
    public static var cacheClusterNotFoundFault: Self { .init(.cacheClusterNotFoundFault) }
    /// A cache parameter group with the requested name already exists.
    public static var cacheParameterGroupAlreadyExistsFault: Self { .init(.cacheParameterGroupAlreadyExistsFault) }
    /// The requested cache parameter group name does not refer to an existing cache parameter group.
    public static var cacheParameterGroupNotFoundFault: Self { .init(.cacheParameterGroupNotFoundFault) }
    /// The request cannot be processed because it would exceed the maximum number of cache security groups.
    public static var cacheParameterGroupQuotaExceededFault: Self { .init(.cacheParameterGroupQuotaExceededFault) }
    /// A cache security group with the specified name already exists.
    public static var cacheSecurityGroupAlreadyExistsFault: Self { .init(.cacheSecurityGroupAlreadyExistsFault) }
    /// The requested cache security group name does not refer to an existing cache security group.
    public static var cacheSecurityGroupNotFoundFault: Self { .init(.cacheSecurityGroupNotFoundFault) }
    /// The request cannot be processed because it would exceed the allowed number of cache security groups.
    public static var cacheSecurityGroupQuotaExceededFault: Self { .init(.cacheSecurityGroupQuotaExceededFault) }
    /// The requested cache subnet group name is already in use by an existing cache subnet group.
    public static var cacheSubnetGroupAlreadyExistsFault: Self { .init(.cacheSubnetGroupAlreadyExistsFault) }
    /// The requested cache subnet group is currently in use.
    public static var cacheSubnetGroupInUse: Self { .init(.cacheSubnetGroupInUse) }
    /// The requested cache subnet group name does not refer to an existing cache subnet group.
    public static var cacheSubnetGroupNotFoundFault: Self { .init(.cacheSubnetGroupNotFoundFault) }
    /// The request cannot be processed because it would exceed the allowed number of cache subnet groups.
    public static var cacheSubnetGroupQuotaExceededFault: Self { .init(.cacheSubnetGroupQuotaExceededFault) }
    /// The request cannot be processed because it would exceed the allowed number of subnets in a cache subnet group.
    public static var cacheSubnetQuotaExceededFault: Self { .init(.cacheSubnetQuotaExceededFault) }
    /// The request cannot be processed because it would exceed the allowed number of clusters per customer.
    public static var clusterQuotaForCustomerExceededFault: Self { .init(.clusterQuotaForCustomerExceededFault) }
    /// The default user assigned to the user group.
    public static var defaultUserAssociatedToUserGroupFault: Self { .init(.defaultUserAssociatedToUserGroupFault) }
    /// You must add default user to a user group.
    public static var defaultUserRequired: Self { .init(.defaultUserRequired) }
    /// A user with this username already exists.
    public static var duplicateUserNameFault: Self { .init(.duplicateUserNameFault) }
    /// The Global datastore name already exists.
    public static var globalReplicationGroupAlreadyExistsFault: Self { .init(.globalReplicationGroupAlreadyExistsFault) }
    /// The Global datastore does not exist
    public static var globalReplicationGroupNotFoundFault: Self { .init(.globalReplicationGroupNotFoundFault) }
    /// The requested cache node type is not available in the specified Availability Zone. For more information, see InsufficientCacheClusterCapacity in the ElastiCache User Guide.
    public static var insufficientCacheClusterCapacityFault: Self { .init(.insufficientCacheClusterCapacityFault) }
    /// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
    public static var invalidARNFault: Self { .init(.invalidARNFault) }
    /// The requested cluster is not in the available state.
    public static var invalidCacheClusterStateFault: Self { .init(.invalidCacheClusterStateFault) }
    /// The current state of the cache parameter group does not allow the requested operation to occur.
    public static var invalidCacheParameterGroupStateFault: Self { .init(.invalidCacheParameterGroupStateFault) }
    /// The current state of the cache security group does not allow deletion.
    public static var invalidCacheSecurityGroupStateFault: Self { .init(.invalidCacheSecurityGroupStateFault) }
    /// You must enter valid credentials.
    public static var invalidCredentialsException: Self { .init(.invalidCredentialsException) }
    /// The Global datastore is not available or in primary-only state.
    public static var invalidGlobalReplicationGroupStateFault: Self { .init(.invalidGlobalReplicationGroupStateFault) }
    /// The KMS key supplied is not valid.
    public static var invalidKMSKeyFault: Self { .init(.invalidKMSKeyFault) }
    /// Two or more incompatible parameters were specified.
    public static var invalidParameterCombinationException: Self { .init(.invalidParameterCombinationException) }
    /// The value for a parameter is invalid.
    public static var invalidParameterValueException: Self { .init(.invalidParameterValueException) }
    /// The requested replication group is not in the available state.
    public static var invalidReplicationGroupStateFault: Self { .init(.invalidReplicationGroupStateFault) }
    /// The state of the serverless cache snapshot was not received. Available for Valkey, Redis OSS and Serverless Memcached only.
    public static var invalidServerlessCacheSnapshotStateFault: Self { .init(.invalidServerlessCacheSnapshotStateFault) }
    /// The account for these credentials is not currently active.
    public static var invalidServerlessCacheStateFault: Self { .init(.invalidServerlessCacheStateFault) }
    /// The current state of the snapshot does not allow the requested operation to occur.
    public static var invalidSnapshotStateFault: Self { .init(.invalidSnapshotStateFault) }
    /// An invalid subnet identifier was specified.
    public static var invalidSubnet: Self { .init(.invalidSubnet) }
    /// The user group is not in an active state.
    public static var invalidUserGroupStateFault: Self { .init(.invalidUserGroupStateFault) }
    /// The user is not in active state.
    public static var invalidUserStateFault: Self { .init(.invalidUserStateFault) }
    /// The VPC network is in an invalid state.
    public static var invalidVPCNetworkStateFault: Self { .init(.invalidVPCNetworkStateFault) }
    /// The operation was not performed because no changes were required.
    public static var noOperationFault: Self { .init(.noOperationFault) }
    /// The node group specified by the NodeGroupId parameter could not be found. Please verify that the node group exists and that you spelled the NodeGroupId value correctly.
    public static var nodeGroupNotFoundFault: Self { .init(.nodeGroupNotFoundFault) }
    /// The request cannot be processed because it would exceed the maximum allowed number of node groups (shards) in a single replication group. The default maximum is 90
    public static var nodeGroupsPerReplicationGroupQuotaExceededFault: Self { .init(.nodeGroupsPerReplicationGroupQuotaExceededFault) }
    /// The request cannot be processed because it would exceed the allowed number of cache nodes in a single cluster.
    public static var nodeQuotaForClusterExceededFault: Self { .init(.nodeQuotaForClusterExceededFault) }
    /// The request cannot be processed because it would exceed the allowed number of cache nodes per customer.
    public static var nodeQuotaForCustomerExceededFault: Self { .init(.nodeQuotaForCustomerExceededFault) }
    /// The specified replication group already exists.
    public static var replicationGroupAlreadyExistsFault: Self { .init(.replicationGroupAlreadyExistsFault) }
    /// The targeted replication group is not available.
    public static var replicationGroupAlreadyUnderMigrationFault: Self { .init(.replicationGroupAlreadyUnderMigrationFault) }
    /// The specified replication group does not exist.
    public static var replicationGroupNotFoundFault: Self { .init(.replicationGroupNotFoundFault) }
    /// The designated replication group is not available for data migration.
    public static var replicationGroupNotUnderMigrationFault: Self { .init(.replicationGroupNotUnderMigrationFault) }
    /// You already have a reservation with the given identifier.
    public static var reservedCacheNodeAlreadyExistsFault: Self { .init(.reservedCacheNodeAlreadyExistsFault) }
    /// The requested reserved cache node was not found.
    public static var reservedCacheNodeNotFoundFault: Self { .init(.reservedCacheNodeNotFoundFault) }
    /// The request cannot be processed because it would exceed the user's cache node quota.
    public static var reservedCacheNodeQuotaExceededFault: Self { .init(.reservedCacheNodeQuotaExceededFault) }
    /// The requested cache node offering does not exist.
    public static var reservedCacheNodesOfferingNotFoundFault: Self { .init(.reservedCacheNodesOfferingNotFoundFault) }
    /// A serverless cache with this name already exists.
    public static var serverlessCacheAlreadyExistsFault: Self { .init(.serverlessCacheAlreadyExistsFault) }
    /// The serverless cache was not found or does not exist.
    public static var serverlessCacheNotFoundFault: Self { .init(.serverlessCacheNotFoundFault) }
    /// The number of serverless caches exceeds the customer quota.
    public static var serverlessCacheQuotaForCustomerExceededFault: Self { .init(.serverlessCacheQuotaForCustomerExceededFault) }
    /// A serverless cache snapshot with this name already exists. Available for Valkey, Redis OSS and Serverless Memcached only.
    public static var serverlessCacheSnapshotAlreadyExistsFault: Self { .init(.serverlessCacheSnapshotAlreadyExistsFault) }
    /// This serverless cache snapshot could not be found or does not exist. Available for Valkey, Redis OSS and Serverless Memcached only.
    public static var serverlessCacheSnapshotNotFoundFault: Self { .init(.serverlessCacheSnapshotNotFoundFault) }
    /// The number of serverless cache snapshots exceeds the customer snapshot quota. Available for Valkey, Redis OSS and Serverless Memcached only.
    public static var serverlessCacheSnapshotQuotaExceededFault: Self { .init(.serverlessCacheSnapshotQuotaExceededFault) }
    /// The specified service linked role (SLR) was not found.
    public static var serviceLinkedRoleNotFoundFault: Self { .init(.serviceLinkedRoleNotFoundFault) }
    /// The service update doesn't exist
    public static var serviceUpdateNotFoundFault: Self { .init(.serviceUpdateNotFoundFault) }
    /// You already have a snapshot with the given name.
    public static var snapshotAlreadyExistsFault: Self { .init(.snapshotAlreadyExistsFault) }
    /// You attempted one of the following operations:   Creating a snapshot of a Valkey or Redis OSS cluster running on a cache.t1.micro cache node.   Creating a snapshot of a cluster that is running Memcached rather than Valkey or Redis OSS.   Neither of these are supported by ElastiCache.
    public static var snapshotFeatureNotSupportedFault: Self { .init(.snapshotFeatureNotSupportedFault) }
    /// The requested snapshot name does not refer to an existing snapshot.
    public static var snapshotNotFoundFault: Self { .init(.snapshotNotFoundFault) }
    /// The request cannot be processed because it would exceed the maximum number of snapshots.
    public static var snapshotQuotaExceededFault: Self { .init(.snapshotQuotaExceededFault) }
    /// The requested subnet is being used by another cache subnet group.
    public static var subnetInUse: Self { .init(.subnetInUse) }
    /// At least one subnet ID does not match the other subnet IDs. This mismatch typically occurs when a user sets one subnet ID to a regional Availability Zone and a different one to an outpost. Or when a user sets the subnet ID to an Outpost when not subscribed on this service.
    public static var subnetNotAllowedFault: Self { .init(.subnetNotAllowedFault) }
    /// The requested tag was not found on this resource.
    public static var tagNotFoundFault: Self { .init(.tagNotFoundFault) }
    /// The request cannot be processed because it would cause the resource to have more than the allowed number of tags. The maximum number of tags permitted on a resource is 50.
    public static var tagQuotaPerResourceExceeded: Self { .init(.tagQuotaPerResourceExceeded) }
    /// The TestFailover action is not available.
    public static var testFailoverNotAvailableFault: Self { .init(.testFailoverNotAvailableFault) }
    /// A user with this ID already exists.
    public static var userAlreadyExistsFault: Self { .init(.userAlreadyExistsFault) }
    /// The user group with this ID already exists.
    public static var userGroupAlreadyExistsFault: Self { .init(.userGroupAlreadyExistsFault) }
    /// The user group was not found or does not exist
    public static var userGroupNotFoundFault: Self { .init(.userGroupNotFoundFault) }
    /// The number of users exceeds the user group limit.
    public static var userGroupQuotaExceededFault: Self { .init(.userGroupQuotaExceededFault) }
    /// The user does not exist or could not be found.
    public static var userNotFoundFault: Self { .init(.userNotFoundFault) }
    /// The quota of users has been exceeded.
    public static var userQuotaExceededFault: Self { .init(.userQuotaExceededFault) }
}

extension ElastiCacheErrorType: Equatable {
    public static func == (lhs: ElastiCacheErrorType, rhs: ElastiCacheErrorType) -> Bool {
        lhs.error == rhs.error
    }
}

extension ElastiCacheErrorType: CustomStringConvertible {
    public var description: String {
        return "\(self.error.rawValue): \(self.message ?? "")"
    }
}
